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 {

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 Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s