dannydiegomusic Posted April 20, 2015 Share Posted April 20, 2015 Here's my site: http://www.bargainsight.com/ If you look in the middle of the home page there are buttons with 1 or 2 lines of text. The buttons with 1 line of text have that text centered perfectly, but the ones with 2 lines of text are off-center. Is there a way to fix this using CSS? Link to comment
creativesqueeze1570047983 Posted April 20, 2015 Share Posted April 20, 2015 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
creativesqueeze1570047983 Posted April 20, 2015 Share Posted April 20, 2015 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
clayyount Posted April 20, 2015 Share Posted April 20, 2015 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
dannydiegomusic Posted April 20, 2015 Author Share Posted April 20, 2015 Oh this is really good, is there a way to make all the buttons the same height though? Preferably the original height. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.