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
  • Views 2.3k
  • 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?

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, 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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

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.