Search code examples
htmlcsscss-shapes

Button with rounded bottom border


I'm wondering if it is possible to create button looks like this:

enter image description here

With CSS only (no additional images).

What do you think?


Solution

  • You should post the code what tried so far. Any way try this one.

    body {
      background-color: #333;
      text-align: center;
      padding-top: 20px;
    }
    button {
      background: beige;
      border-radius: 3px;
      box-shadow: 0px 5px 0px maroon;
      border: 0;
      color: #333;
      font-size: 17px;
      padding: 10px 30px;
      display: inline-block;
      outline: 0;
    }
    button:hover {
      background: #eaeab4;
      box-shadow: 0px 5px 0px #4d0000;
    }
    button:active {
      box-shadow: none;
      margin-top: 5px;
    }
    <button type="button">Text hover</button>