Jump to content

Change height of header image on mobile only?

Recommended Posts

  • Replies 4
  • Created
  • Last Reply
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)
🗓️ Delivery Date Picker (Squarespace Date format)
💫 Animated Buttons (Referral URL)
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, 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

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.