Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS [Solved] Hide the green sidebar on mobile @media

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #189729
    motion2082
    Participant

    hey guys,

    can anyone help me hide the left green sidebar at http://www.firedamcivil.biz on mobile

    trying the use the following with no result

    /* hide the left menu on mobile */
    @media (max-width: 480px) {
        #belowleftmenu{
        visibility: hidden;
        }
    }

    I noticed my content is overlapping my left sidebars as well when I adjust size

    #189732
    jamygolden
    Member

    Try this:

    @media (max-width: 979px) {
        .belowleftmenu  {
            display: none;
        }
    }
    

    In your example above you’re hiding #belowleftmenu but only the class . belowleftmenu exists on the page.

    If you can you should try and aim for a mobile first design. You should give this HTML5Rocks article a read.

    #189733
    Paulie_D
    Member

    #belowleftmenu

    isn’t belowleftmenu a class, not an ID?

    #189735
    motion2082
    Participant

    isn’t belowleftmenu a class, not an ID?

    My bad, getting late brain is failing

    #189738
    motion2082
    Participant

    it seems to be a lot better now :smile:

    gonna call it a night, thank u all for your assistance it’s much appreciated

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘CSS’ is closed to new topics and replies.