Jump to content

Adjust section height on mobile view

Go to solution Solved by tuanphan,

Recommended Posts

The best fix for this IMO would be:
 

#collection-id
.page-section:nth-child(1)
{min-height: 100px !important}

If you're using Squarespace 7.0 you can use the index pages URL:

#url-slug
.Index-page-content
{min-height: 100px !important;}

 

Edited by DPruitt
Added code
Link to comment
  • Solution

Use this CSS code

@media screen and (max-width:640px) {
section#about-cta>div {
    margin-bottom: 0px !important;
    padding-top: 0px !important;
    padding-bottom: 0px !important;
}
section#about-cta {
    min-height: unset !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
On 7/3/2023 at 7:59 PM, LillianC said:

I've been trying all the code suggested on here but can't make the scrolling ticker tapes (marque) to be less height on mobile?

There's also a strange white gap below each of them.

https://www.rooftopbar.co/

Use this CSS code

/* Scroll block height mobile */
@media screen and (max-width:767px) {
.fe-64a2a4fed52b0a6c56236623 {
    grid-template-rows: repeat(2,minmax(24px, auto)) !important;
}
}

image.png.534b08ef971dace6056d486e1587b0b5.png

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.