Jump to content

Full viewport height while keeping elements at top/bottom/middle of section

Recommended Posts

Posted

Hey there,

I'm trying to have the the first and last sections of my website to become the full width and height of the viewport. I need the elements (text + images) to stay in their positions, but have the size of these two sections simply respond to the browser resizing.

The website is www.kurtandcarmela.com.

Any tips would be greatly appreciated.

Thanks!

Screen Shot 2023-03-06 at 10.11.59 pm.png

Screen Shot 2023-03-06 at 10.12.10 pm.png

  • Replies 2
  • Views 365
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

Posted
3 hours ago, kurtandcarmela said:

Hey there,

I'm trying to have the the first and last sections of my website to become the full width and height of the viewport. I need the elements (text + images) to stay in their positions, but have the size of these two sections simply respond to the browser resizing.

The website is www.kurtandcarmela.com.

Any tips would be greatly appreciated.

Thanks!

Screen Shot 2023-03-06 at 10.11.59 pm.png

Screen Shot 2023-03-06 at 10.12.10 pm.png

I check that it is working properly now

Have you figured it out yet?

image.thumb.png.cebdfdf0534d7bb4f295a98bab6dcce0.png

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> 🤖 Ask me anything

Posted
1 hour ago, Beyondspace said:

I check that it is working properly now

Have you figured it out yet?

image.thumb.png.cebdfdf0534d7bb4f295a98bab6dcce0.png

Hey @Beyondspace, it’s not working yet.

 

I need the first and last sections to fill the entirety of the screen, no matter the size of the viewport. Currently for example, if the browser width is narrower than in my screenshot (and yours), you’ll be able to see the top next section hanging underneath the first – which I was hoping to avoid.

 

I’ve tried a few variations of 100vh on the CSS input area but nothing worked 😫

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.