Jump to content

Set section Height with CSS

Recommended Posts

Can someone help me write the correct CSS code to decrease the section height for 3 sections I created that have a codeblock in it. 

Attached you can find screenshots of a specific section with the codeblock. I created these sections for anchor links. Since I can't add a code block to the section I want to link it too via the section above it.

The sections are on the homepage. 

Website link: https://tuatara-rectangle-rbam.squarespace.com/
Password: testing

Code ID's for each section:





Screenshot 2023-04-17 at 1.56.35 pm.png

Screenshot 2023-04-17 at 1.56.14 pm.png

Link to comment
  • Replies 1
  • Views 113
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

Code blocks are a little buggy in 7.1 Fluid Engine, if you try a markdown block instead you should be able to make the block just one row tall without CSS.

I would suggest using <span> instead of <p>

<span id="Testimonials"></span>

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

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.