# HTML button with CSS

In 
CSS
Published 2022-12-03

This tutorial shows you how to create an HTML button using CSS. You will see a button with a 'pressed' effect on click.

Here we have an example:

<html>
 <head>
    <style>
      .button1 {
        padding: 15px 25px;
        font-size: 24px;
        text-align: center;
        cursor: pointer;
        outline: none;
        color: #fff;
        background-color: #4CAF65;
        border: none;
        border-radius: 15px;
        box-shadow: 0 9px #999;
      }
       
      .button1:hover {background-color: #3e8e42}
       
      .button1:active {
        background-color: #3e8e41;
        box-shadow: 1 4px #66A;
        transform: translateY(4px);
      }
    </style>
 </head>
 <body>
    <button class="button1">Click ...</button>
    <p class="button1">Click (II) </p>
 </body>
</html>

Here we have the page in the browser :