Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1014508

    I have a header widget which I’m trying to have display on desktop only. I have the css to try and accomplish this but it is still displaying and the margin around this widget is distorting the mobile layout here: http://unisourceprinting.com/
    Here is css (I know it’s silly to remove h2 and h3 in widget that’s not supposed to be displaying – but it was messing up the whole header):
    @media only screen and (min-width: 1000px) {
    #header .widget {
    left: 45%;
    padding-top: 36px;
    position: absolute;
    top: 0;
    }
    #header .widget h3 {
    font-family: “Droid Serif”, Georgia, Times, serif; font-style:italic;
    }
    }
    /* mobile styles */
    @media only screen and (max-width: 999px) {
    #header .text-widget {
    display: none !important;
    }
    #header .widget h3 {
    display: none !important;
    }
    #header .widget h2 {
    display: none !important;
    }
    }

    #1014554

    Hey ckwellington,

    Please try this instead:

    @media only screen and (max-width: 999px) {
    #text-15 {
      display:none;
    }
    }

    Best regards,
    Rikard

    #1014897

    Perfect! Thank you so much.

    #1014926

    Hi,

    I’m glad this was resolved. If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Header widget displaying on mobile devices’ is closed to new replies.