Jump to content

Is there a way to change the height of a section on mobile only?

Recommended Posts

2 hours ago, kelpcreative said:

Site URL: https://www.capedorwines.com/

Hi everyone,

I was wondering if there's a way to change the section height from Large on desktop to Medium on mobile for the home page video at the top.

Any help or advice will be much appreciated!

Many thanks

Screenshot 2021-11-20 at 12.25.49.png

Screenshot 2021-11-20 at 12.26.13.png

Hi @kelpcreative,

Is it the result you want to achieve?

 

 

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
2 hours ago, kelpcreative said:

Hi @bangank36,

Yes that's it ... only on mobile view. Is that possible?

Many thanks

Hi @kelpcreative,

This is my setting for mobile. You can try adding to Home > Design > Custom Css

@media only screen  and (max-width: 767px) {
section[data-section-id="61684bed7038d43656d541f6"] {
  min-height: 0 !important;
}
}

Let me know how it works on your site

Press 👍 or mark this answer as solution to help another one too

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
  • 1 year later...
On 11/22/2021 at 10:12 AM, Beyondspace said:

Hi @kelpcreative,

This is my setting for mobile. You can try adding to Home > Design > Custom Css

@media only screen  and (max-width: 767px) {
section[data-section-id="61684bed7038d43656d541f6"] {
  min-height: 0 !important;
}
}

Let me know how it works on your site

Press 👍 or mark this answer as solution to help another one too

Oh that is amazing! I am also looking for something similar, but i would want the section to be Medium and not large and when i try your code, it makes it small, would there be a way to change it so that is medium and not small? 

Thank you so much 

ximage.thumb.png.fa8571830b32c842e0322c3b9871ba0e.png

Link to comment
On 3/27/2023 at 12:38 AM, melchiormahot said:

Oh that is amazing! I am also looking for something similar, but i would want the section to be Medium and not large and when i try your code, it makes it small, would there be a way to change it so that is medium and not small? 

Thank you so much 

ximage.thumb.png.fa8571830b32c842e0322c3b9871ba0e.png

Use this code

@media only screen  and (max-width: 767px) {
section[data-section-id="61684bed7038d43656d541f6"] {
  min-height: 0 !important;
	height: 35vh !important;
}
}

Adjust number 35 to number what you feel okay

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

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.