Jump to content

Resizing banner in Mojave to stay a full width image for mobile

Recommended Posts

Site URL: https://www.wildlife.co.nz/wildlife-cruise-1

 

Hi,

I am trying to figure out how to use a media query to resize page banners to be a full width image on mobile view. The banners won't have text or buttons on them. I just want them to be a full width image that has the parallax effect as the user scrolls down the page. I want to be able to do this on multiple pages on my website.

Example page: www.wildlife.co.nz/wildlife-cruise-1

Squarespace 7.0 | Mojave template

@tuanphan I've seen you respond to others but the code you've provided them hasn't worked for me. Please help. 

Thanks in advance!

Link to comment
  • Replies 3
  • Views 557
  • Created
  • Last Reply

Edit above page settings > Advanced > Header

<style>
  @media screen and (max-width:640px) {
  .Parallax-item:first-child img {
    width: 100% !important;
    height: auto !important;
    left: 0 !important;
    top: 0 !important;
}
    .Parallax-item:first-child figure {
    transform: unset !important;
}
    section#new-page-54 {
    min-height: unset !important;
    height: 250px;
}
  }
</style>

 

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

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.