Jump to content

How to decrease section height with code

Go to solution Solved by threadsonline,

Recommended Posts

Posted

Hi everyone,

 

The first section on my home page is a click through image section. It's one of the pre-made templates that come under 'people'. I really like the height of the section on desktop view, but I would like to decrease the height on mobile view by about a third. Any custom CSS suggestions for this? Thanks in advance!

Mobile 1.png

Desktop 1.png

  • Replies 1
  • Views 1.8k
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

  • Solution
Posted

Managed to find the code for this:

 

// decrease banner height on mobile
@media screen and (max-width:767px) {
.user-items-list-item-container[data-section-id="65b96124899002297ce21714"] ul {
    min-height: unset !important;
    height: 70vh !important;
}
}

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.