Jump to content

Need to apply css to multiple text blocks, is there any easier way?

Recommended Posts

Site URL: https://www.jessica-mei.com/grubit

Hello everyone, 

 

I need help on optimizing my CSS more. I currently have multiple text blocks I want to apply specific CSS to, which require me to get each id # before I can apply the CSS. I was wondering if there could be an easier way to do this?

For example my two text blocks are "USER RESEARCH" and "Literature Review". I want to make these two blocks of text as close as they can because they are a set. 

 

I've attached some screenshots for reference. I hope that made sense. The coding is getting a bit tedious, and I'm not too good with css so any tips would be helpful! Thank you.

Screen Shot 2022-07-30 at 4.27.13 PM.png

Screen Shot 2022-07-30 at 4.30.52 PM.png

Screen Shot 2022-07-30 at 4.30.45 PM.png

Edited by meijessica
grammar error
Link to comment
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

2 hours ago, meijessica said:

Site URL: https://www.jessica-mei.com/grubit

Hello everyone, 

 

I need help on optimizing my CSS more. I currently have multiple text blocks I want to apply specific CSS to, which require me to get each id # before I can apply the CSS. I was wondering if there could be an easier way to do this?

For example my two text blocks are "USER RESEARCH" and "Literature Review". I want to make these two blocks of text as close as they can because they are a set. 

 

I've attached some screenshots for reference. I hope that made sense. The coding is getting a bit tedious, and I'm not too good with css so any tips would be helpful! Thank you.

Screen Shot 2022-07-30 at 4.27.13 PM.png

Screen Shot 2022-07-30 at 4.30.52 PM.png

Screen Shot 2022-07-30 at 4.30.45 PM.png

I use the following extension to get the right id for selector Css to set style: squarespace ID finder

How to find the block id: https://recordit.co/kUIH4uco0b

Hope it can help

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

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.