Jump to content

Change height of header image on mobile only?

Recommended Posts

Posted

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

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.

  • Replies 4
  • Views 1.2k
  • Created
  • Last Reply
Posted
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;
      }
}

 

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - PDF Lightbox popup - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> No-code customisations for Squarespace

Posted
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?

Posted
2 hours ago, tuanphan said:

The url doesn't exist. Can you check again? @Peterotoole

Sorry the same problem as my last post. The address above has now been updated. Thanks

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.