Jump to content

Text Alignment in Buttons

Recommended Posts

I want to add buttons on the footer of my website that change color when you hover over them. I got the hover part figured out through custom css, but now I want to change the text alignment to left instead of center. Squarespace just says that there should be an option to change the alignment, but there is not. At least, nothing I can find. I cannot change the text without opening the dialogue box and there isn't an option to change anything with the text in the box. So, I thought I could just change it with a code. Here is what I have that also includes the hover. Can someone help me find the right code for this? TIA

.sqs-block-button .sqs-block-button-element--small:hover {
  background-color: #548687;
  color: #548687; text-align: left }

Link to comment
  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

23 hours ago, SarahPiano said:

I want to add buttons on the footer of my website that change color when you hover over them. I got the hover part figured out through custom css, but now I want to change the text alignment to left instead of center. Squarespace just says that there should be an option to change the alignment, but there is not. At least, nothing I can find. I cannot change the text without opening the dialogue box and there isn't an option to change anything with the text in the box. So, I thought I could just change it with a code. Here is what I have that also includes the hover. Can someone help me find the right code for this? TIA

.sqs-block-button .sqs-block-button-element--small:hover {
  background-color: #548687;
  color: #548687; text-align: left }

Can you share your site with the protected password so I can take a look?

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment
48 minutes ago, SarahPiano said:

You mean Learn More links?

Add to Design > Custom CSS

footer.sections .button-block *, footer.sections .button-block {
    text-align: left !important;
    justify-content: flex-start !important;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • 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.