Jump to content

How to center text on buttons?

Recommended Posts

  • Replies 4
  • Views 10.7k
  • Created
  • Last Reply

In the Custom CSS, try adding this:

.sqs-block-button .sqs-block-button-element--small { line-height: .95em;}

Hope this helps!

I am a front-end developer/designer and run Creative Squeeze, a small Creative Agency in Orange County, CA with two friends. As a Squarespace Specialist, I like to help where I can help build on the growing body of support for Squarespace. Let me know if you have a question and I'll do what I can to help!

Link to comment

In the Custom CSS, try adding this:

.sqs-block-button .sqs-block-button-element--small { line-height: .95em;}

Hope this helps!

I am a front-end developer/designer and run Creative Squeeze, a small Creative Agency in Orange County, CA with two friends. As a Squarespace Specialist, I like to help where I can help build on the growing body of support for Squarespace. Let me know if you have a question and I'll do what I can to help!

Link to comment

This Custom CSS will vertically align the text in a consistent button height and gives the text a nice line-height. Good for a grid:


.sqs-block-button{
   display:table;
   min-height:60px;
}
.sqs-block-button .sqs-block-button-element--small{
   display: table-cell;
   vertical-align: middle;
   line-height:1.2em;
}

Link to comment

Archived

This topic is now archived and is closed to further replies.


×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.