Jump to content

Impact Template: Decreasing Banner Height On Desktop/Mobile?

Recommended Posts

Posted

Site URL: https://decisivemarketing.co/

I'm having a heck of a time trying to figure out how to properly decrease the banner height on desktop or mobile for my site, which was built on the Impact template. 

On Desktop it looks fine. Though, I wouldn't mind making the banner slightly shorter.

On mobile, I inserted a CSS code that someone shared to prevent the banner on mobile from zooming the image in. The below code was inserted into Design > Custom CSS:

@media screen and (max-width:640px) {
.homepage figure img {
    width: 100% !important;
    left: 0 !important;
    height: auto !important;
}
div#banner-wrapper {
    height: 100px;
}
}


While the code works great to prevent resizing/zooming on mobile, I'm left with large black sections underneath each image, that I would love to eliminate. (see attached screenshot for example)

Any help would be greatly appreciated. 

Thanks!

IMG_0868.PNG

  • Replies 2
  • Views 444
  • Created
  • Last Reply
Posted

Use this code

@media screen and (max-width:640px) {
.homepage figure img {
    width: 100% !important;
    left: 0 !important;
    height: auto !important;
}
div#banner-wrapper {
    height: 100px;
}
section#new-page-1 {
    min-height: unset !important;
    height: 160px;
}
}

 

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!)

Posted

Worked like a charm!

I just had to insert the code 2 additional times, changing the "section#new-page-1" line of code to the slugs for the other banner pages to fix all of them. 

Thank you!!

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.