IMG-LOGO
Home Tutorial Pill Buttons

Pill Buttons

by MH RISHAD - 19 Oct 2018
IMG

How To Create a Pill Button

Step 1) Add HTML:

<button class="button">Pill Button</button>

 

Step 2) Add CSS:

Add rounded corners to a button with the border-radius property:

 

.button {
  background-color: #ddd;
  border: none;
  color: black;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  margin: 4px 2px;
  cursor: pointer;
  border-radius: 16px;
}

 

 

Share:

Leave a Comment

Required fields are marked *