Quick Button CSS

Big Red Button, photo by wlodi

Want a quick and easy button style for your site?

Oh hai button!

Whack the following in your Custom CSS (in the Customizer):

.button {
  display: inline-block;
  border: 1px solid #ccc;
  padding: 5px 10px;
  border-radius: 3px;
  text-decoration: none;
}

.button:hover {
  text-decoration:none;
  background:#eee;
}

Then, wherever you need a button add class="button" to a link. To do that, add a link as normal, then switch to the HTML editor to add the class. The resulting HTML should look something like:

<a href="http://yourlinkishere.com" class="button">Link Text Here</a>

Leave a comment