Jump to content

Banner Image all pages

Recommended Posts

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

Hi, I used the code below and it worked for resizing banner on homepage for mobile, but I want it to resize the banner on all pages for mobile - how do I change the banner image across all pages on my site to work on mobile view? Also, is there a way to cut out the negative space under the banner for mobile view? Thank you 

 

site: www.mindfulbirthingnola.com 

 

@media screen and (max-width:640px) {
.homepage .section-background img {
    width: 100% !important;
    height: auto !important;
}
}

Link to comment
  • Replies 2
  • Views 409
  • Created
  • Last Reply
8 hours ago, Paisleigh said:

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

Hi, I used the code below and it worked for resizing banner on homepage for mobile, but I want it to resize the banner on all pages for mobile - how do I change the banner image across all pages on my site to work on mobile view? Also, is there a way to cut out the negative space under the banner for mobile view? Thank you 

 

site: www.mindfulbirthingnola.com 

 

@media screen and (max-width:640px) {
.homepage .section-background img {
    width: 100% !important;
    height: auto !important;
}
}

Try adding this:

 

 

@media screen and (max-width:640px) {
#sections .page-section:nth-child(1) {
width: 100% !important;
height: auto !important;}}

Link to comment

Remove above code & add this to Page Header. If you use Personal Plan > You can edit page > Add a Code Block

<style>
  /* resize banner mobile */
  @media screen and (max-width:767px) {
  #page section:first-child {
    min-height: 20vh !important;
    margin-top: 5vh;
}
  }
</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.