Jump to content

Need help with a css for changing a section height on mobile

Recommended Posts

On 8/12/2021 at 12:55 AM, tuckerrrrr said:

Site URL: https://llama-mushroom-l4ge.squarespace.com/

Im looking to change the height of the section with the video on mobile only to being around 53 so that it's a similar size to the desktop. It's currently sitting at 90, any help with a CSS would be great as I'm useless with code. Thanks!

 

1325105291_Screenshot2021-08-11at18_43_45.thumb.png.4c4e267457f1da20bb22421dc82fea65.png551767006_Screenshot2021-08-11at18_43_54.png.3fd902e1768c48ebac2aff1ae427f050.png

 

 

Hi. You mean top video section?

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
  • 1 month later...
On 10/6/2021 at 2:54 AM, tuckerrrrr said:

yeah!

Add to Design > Custom CSS

@media screen and (max-width:767px) {
[data-section-id="611110b11d734d4ec4f8cef8"] {
    min-height: unset !important;
    height: 30vh;
    margin-top: 10vh !important;
}

[data-section-id="611110b11d734d4ec4f8cef8"] iframe {
    width: 100% !important;
    height: auto !important;
    left: 0 !important;
    top: 0 !important;
}
}

 

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.