Jump to content

How to resize banners heigh for mobile

Recommended Posts

  • Replies 1
  • Views 371
  • Created
  • Last Reply

It looks like you used 2 banners for desktop/mobile. However if you want to resize desktop banner on mobile. Remove your code & add this CSS

/* resize mobile banner */
@media screen and (max-width:640px) {
section#banner-desktop figure img {
    width: 100% !important;
    left: 0 !important;
    height: auto !important;
}
section#banner-desktop {
    height: 220px;
}
}

image.thumb.png.98a15ce28dffbb62d358da70dd27fe56.png

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.