Is it possible to create “hamburger icon” menu without javascript?

Discussion in 'Web Development' started by SMella, Oct 1, 2017.

  1. SMella

    SMella Registered Member

    Joined:
    Sep 6, 2017
    Messages:
    6
    Likes Received:
    0
    Basically, I want to build the expected 3-bar-line menu functionality that is common on the web today. I'm just not sure if it's possible with "just" CSS and HTML. Is it?
     
  2. Aduardo

    Aduardo Registered Member

    Joined:
    Sep 6, 2017
    Messages:
    6
    Likes Received:
    1
    It can also be done using the target pseudo-class to hide/show the menu. If the burger links to the menu's ID, that ID becomes the active target.
     

Share This Page