Jump to content

Shorten Header Images on Mobile

Recommended Posts

I was able to resolve the page header issue by altering the h1 margins. Still having trouble with the index rotating gallery. I'm using the code below but have a large black bar  and text is not centered vertically. 

/* resize home slide */
@media screen and (max-width:640px) {
section#rotating-home-gallery img {
    width: 100% !important;
    left: 0 !important;
    height: auto !important;
}
section#rotating-home-gallery {
    height: 300px;
}
}

 

Screen Shot 2021-11-23 at 10.13.25 PM.png

Link to comment

Try adding to Design > Custom CSS

/* Mobile homepage slide */
@media screen and (max-width:640px) {
section#rotating-home-gallery {
    height: 220px !important;
}
section#rotating-home-gallery .Index-gallery-item-content {
    position: relative;
    top: -50px;
}
}

 

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.