Jump to content

Aligning text to touch the bottom of a section

Go to solution Solved by Ziggy,

Recommended Posts

Posted

Site: https://lynx-haddock-7k4d.squarespace.com/

Password: abcd1234

 

I could use some help with some CSS trickery

image.thumb.png.3302f99e19f30129d3dea094a2ecb4ba.png

I'm looking to align the text block to the very bottom of the section, with no space in between. There doesn't seem to be any padding/margin to work with. Can someone start me off on how to solve a problem like this?

THanks.

  • Solution
Posted

Try this with an adjustment to the line height property:

#block-0915ebafdc554f9da0b3 {
  [data-website-fonts] h1 {
    line-height: 0.7em !important;
  }
}

Custom CSS is playing up, so if this doesn't immediately work, save the CSS and refresh the page.

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

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

📈 SEO Space (Referral link)
Ⓜ️ 
Will Myers' Plugins & Tutorials (Referral link)
 🔌 Ghost Squarespace Plugins (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

Posted
10 hours ago, r3lai said:

How did you figure out that it is 0.7em?

Trial and error in Chrom Dev Tools.

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

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

📈 SEO Space (Referral link)
Ⓜ️ 
Will Myers' Plugins & Tutorials (Referral link)
 🔌 Ghost Squarespace Plugins (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

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.