Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #466015

    I have some custom css applied to my #header.header_color so it has a background image. I don’t want that background image to show when in responsive mode (tablets and smaller).

    Here is what I tried, but the background image still shows up on screens smaller than 990px.

    The regular css:

    #header.header_color {background-image: url("//site.com/wp-content/uploads/2015/01/headerbg2.png");
    background-repeat: repeat-x;
    background-position: center bottom;
    background-color: #8f9194;}

    The mobile css:

    @media only screen and (max-width: 990px) {
    #header.header_color {background-image: none;
    background-color: #8f9194;}
    }
    #466409

    Hey hmsvictory!

    Could you try with the !important statement? Make sure all your caches are clean too.

    @media only screen and (max-width: 990px) {
    #header.header_color {
    background-image: none !important;
    background-color: #8f9194 !important;
    }
    }

    Cheers!
    Rikard

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.