Different background image for mobile

1 reply · opened Aug 25, 2017

BbaroninkjetAug 25, 2017

My pages are pretty well on all devices, except for one page title background image on iphone portrait. (Landscape works fine.) So what I thought I would do would be to switch the image using @media for small screen. But I can't get it to work. Here is page in question:

http://beta.of-g.com/meetdeveloper.html

I put the background image settings for this page in custom.css:

 .meet-dev{
   background-image: url('images/pyramid-ofg.jpg');
   padding: 120px 0;
   background-position: 85%;
   background-color:#26261c;
}

This works fine. Then below that I added this to use different image for small screen:


@media only screen and (max-width: 767px) {
   .meet-dev{
    background-image: url('images/pyramid-small-ofg.jpg');
  }
}

But the @media code does nothing. Clearly, I am missing something! Could someone please help?

Thank you!

BbaroninkjetAug 25, 2017

Please disregard.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard