Jump to content

Homepage Image Setting

Recommended Posts

Hi - 

Anyone else has this problem with Squarespace? Everything on my page worked fine when I set it up months ago. Recently though I noticed my homepage image scoots up under the header when I go on the site. Only on mobile screen. Soon as I nudge the screen a bit - it sets in place. But it won't do so on its own, even after some time.

The idea here is that I have a set, still front page, that fits just within the screen and doesn't scroll anywhere. Here's the code I had, and which worked fine before.

@media screen and (max-width:767px) {

section#feature {

    min-height: unset !important;

    height: calc(~"90vh - 96px") !important;

}

}

@media screen and (max-width: 767px)

{ #feature

  {min-height: 78vh! important}

  }

I tried removing one of them and using only the other, setting only specific height, as well as adding these commands to the first, but no success:

transition: height 0.1s ease;

transform: translateZ(0);

I feel like squarespace always makes some internal update and it inevitably will mess something up in any one of my codes..

Site: alinahetz.com

image.thumb.png.31f07b222116d6fe3b9734976ba29e17.pngimage.thumb.png.a7f3b9362a91ad87c2c4b59eade30b49.png

Link to comment

Hi David,

Thank you, I changed the code to the one you wrote and experimented with different vh values but it only enlarged an image and made the page scrollable, it still pushed the image under the header when first opened. 

I've tried many different code variations that should have been successful, but it's as if SquareSpace system doesn't read it. Not sure what's going on. 

Link to comment
On 5/4/2024 at 10:30 PM, AlinaH said:

Hi - 

Anyone else has this problem with Squarespace? Everything on my page worked fine when I set it up months ago. Recently though I noticed my homepage image scoots up under the header when I go on the site. Only on mobile screen. Soon as I nudge the screen a bit - it sets in place. But it won't do so on its own, even after some time.

The idea here is that I have a set, still front page, that fits just within the screen and doesn't scroll anywhere. Here's the code I had, and which worked fine before.

@media screen and (max-width:767px) {

section#feature {

    min-height: unset !important;

    height: calc(~"90vh - 96px") !important;

}

}

@media screen and (max-width: 767px)

{ #feature

  {min-height: 78vh! important}

  }

I tried removing one of them and using only the other, setting only specific height, as well as adding these commands to the first, but no success:

transition: height 0.1s ease;

transform: translateZ(0);

I feel like squarespace always makes some internal update and it inevitably will mess something up in any one of my codes..

Site: alinahetz.com

image.thumb.png.31f07b222116d6fe3b9734976ba29e17.pngimage.thumb.png.a7f3b9362a91ad87c2c4b59eade30b49.png

Hi @tuanphan ! Would you happen to have seen anything like this before? I've set different vh and px values but the issue persists. 

Link to comment
On 5/7/2024 at 11:26 PM, AlinaH said:

Hi @tuanphan ! Would you happen to have seen anything like this before? I've set different vh and px values but the issue persists. 

You mean move text align center horizontal + vertical + remove white space?

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

@tuanphan Remove the white space on the bottom and stop the cover image from shifting upwards under my header at the top (It's semi-transparent by design). That's what you can see in the first screenshot, then if I nudge the screen it jumps in place as in the last screenshot. But that's how it should be at all times, without the need to nudge.

The image is set to be the exact screen size on mobile, and not supposed to move anywhere outside of it. The idea is that its a fixed homepage.

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.