Jump to content

Responsive banner and bump header text on mobile

Recommended Posts

Site URL: https://www.oldsonmedical.com/

Hi I am struggling with the auto responsiveness of the home page banner on my site for mobile. The text runs over my clients face and she doesn't like it. My client wants to keep the photo there (not replace with a non headshot photo for mobile) but is there any way to bump the banner text above or below the photo with code? I've tried this code below but it just ends up cutting off the entire banner and text with it (second pic). It would be great if the header text + button bumped down into its own blue section below the banner image...

@media screen and (max-width:767px) {
.homepage #page section:first-child {
    min-height: 20vh !important;
    height: 30vh;
}
}

Screen Shot 2021-01-13 at 12.30.00 PM.png

Screen Shot 2021-01-13 at 12.31.03 PM.png

Link to comment
  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Add to Design > Custom CSS

/* Mobile banner */
@media screen and (max-width:767px) {
div#page-section-5fc53671f81c9a2a0c4c611a .span-12 {
    position: relative;
    bottom: -100px;
}
body.homepage #page section:first-child {
    height: 90vh;
}
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
  • 11 months later...
On 12/31/2021 at 2:42 PM, giangpham said:

This code worked for my home screen but I also have banners on my other pages. How do I make it work for my other pages (Shop, and Custom Arrangement pages) ? 

image.thumb.png.8982345435a67e149779ded3dd1b121e.png

image.png.4437131fc20951c16c5c339bc492df91.png

 

I don't see these pages on main menu. Can you share links?

Shop, and Custom Arrangement pages)

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.