Jump to content

Change height of header image on mobile only?

Recommended Posts

29 minutes ago, Peterotoole said:

Site URL: https://horse-onion-layz.squarespace.com/about-3

Hi there,

Does anyone know the code I need to use in order to be able to reduce the height of my header on mobile ONLY? I am happy with the header size on desktop but simply want to reduce height on mobile.

Thanks a million.

Try this in Design->custom css and let us know

@media only screen and (max-width: 600px) {
      section[data-section-id="5fff89c3e11bb3272d4fce10"] {
        min-height: 70vh !important;
      }
}

 

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment
20 hours ago, bangank36 said:

Try this in Design->custom css and let us know


@media only screen and (max-width: 600px) {
      section[data-section-id="5fff89c3e11bb3272d4fce10"] {
        min-height: 70vh !important;
      }
}

 

Thanks so much! It works but what it does it stretch or condense the image. It does't reduce the image proportionally. Is there any way for it to respect the original proportions of the original image?

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.