Jump to content

Applying min-height to a hero image?

Go to solution Solved by DanielChicagoCane,

Recommended Posts

Posted

Site URL: https://www.chicagocane.com/

Our hero image is getting covered by the header and the section below it depending on screen dimensions/layout. We uploaded it as a background so that the stripes would bleed to the edge (as is part of our brand).

I'm trying to apply a min-height CSS snippet for the image but can't find the proper id for it? I'm thinking a vh of 90-100 should work.

Would appreciate any advice on how to properly apply min-height to this image and other hero images on the site!

Screen Shot 2022-06-15 at 5.08.13 PM.png

  • Replies 4
  • Views 553
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Posted

Thanks!

Could you point me to how you found that section id so I can apply to the other pages and know how to in the future? Guess I should inspect the source html and look for that id to get an id of which div or section of code the proper id comes from?

40 minutes ago, tuanphan said:

Add to Design > Custom CSS

[data-section-id="62a1154305dc802ad92b38cb"] {
    min-height: 95vh !important;
}
40 minutes ago, tuanphan said:

 

 

 

  • Solution
Posted
51 minutes ago, tuanphan said:

Add to Design > Custom CSS

[data-section-id="62a1154305dc802ad92b38cb"] {
    min-height: 95vh !important;
}

 

 

This worked great although I found that for my purposes using 50vw instead of 95vh accomplished exactly what I needed!

Posted
26 minutes ago, DanielChicagoCane said:

Thanks!

Could you point me to how you found that section id so I can apply to the other pages and know how to in the future? Guess I should inspect the source html and look for that id to get an id of which div or section of code the proper id comes from?

 

Nevermind I found it playing around inspecting the code. thanks!

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.