Jump to content

Want to change content height of some media only when viewed on mobile devices

Recommended Posts

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

Hi,

 

I would like to change the section height of some content on my website, but only when viewed on a mobile device. For instance I would like to change the content height of the video on my main page to 'S' size, while it remains at it's normal height when viewed on a desktop screen. Also of the video on the OXYCOM page.

 

Thanks for the assistance.

Edited by interstellarhaze
Link to comment
  • Replies 4
  • Views 218
  • Created
  • Last Reply

Top Posters In This Topic

Add to Design > Custom CSS

/* Oxycom page video mobile */
@media screen and (max-width:767px) {
[data-section-id="622f9fb37a998e515e8d4bb5"] {
    min-height: unset !important;
    height: 30vh !important;
}
}

Find data section id with: https://chrome.google.com/webstore/detail/squarespace-id-finder/igjamfnifnkmecjidfbdipieoaeghcff?hl=en

https://www.smartcoolingsolutions.com/oxycom

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
On 3/19/2022 at 9:22 AM, tuanphan said:

Add to Design > Custom CSS

/* Oxycom page video mobile */
@media screen and (max-width:767px) {
[data-section-id="622f9fb37a998e515e8d4bb5"] {
    min-height: unset !important;
    height: 30vh !important;
}
}

Find data section id with: https://chrome.google.com/webstore/detail/squarespace-id-finder/igjamfnifnkmecjidfbdipieoaeghcff?hl=en

https://www.smartcoolingsolutions.com/oxycom

That worked like a charm.

Thank you.

Edited by interstellarhaze
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.