Jump to content

Trying to make a custom CSS for using a different image as my desktop vs mobile banner

Recommended Posts

Posted

Hi- I am trying to use an all together different image for my homepage banner image on my Aria site. www.aniwa.co

The desktop image is horizontal based, so for mobile it cuts off and regardless of the coding it will be cut off too much. I have a vertical version of the homepage image that I want to display on mobile. Anyone have a CSS code for a all together different banner image on desktop v mobile?

Thanks!

Danielle

  • 2 months later...
  • Replies 1
  • Views 515
  • Created
  • Last Reply
Posted

I was able to display a different banner image on mobile with the following code: 

@media only screen and (max-width: 640px) {
       #page-url {
              background-image:url('instertimageurlhere');
         }
    }

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.