Jump to content

How to make section height smaller just for mobile

Recommended Posts

Hi, 

I searched a few other threads for this but couldnt find a solution. I'm trying to make the height for the section at the top of the homepage smaller. It looks great on desktop, but on mobile it's way too tall. Does anyone have any code that can do this?

Thanks

Link to comment
  • Replies 1
  • Views 190
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Can you share site url?

Or follow these steps

(1) First, find Section ID with this tool

image

Next, use CSS code like this to Website Tools > Custom CSS

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

image

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.