Responsive Menu With Media Queries (Checkbox Trick) - Using Only CSS3

Caler Edwards on YouTubeWatch on YouTube

SaveMark complete

Sign in to save videos and track what you’ve finished.

IntermediateDesign Engineering11 min

About this video

This tutorial shows how to convert a standard navigation bar into a responsive menu that switches to a mobile hamburger style at a set breakpoint. It uses a checkbox technique with CSS media queries to open and close the menu without JavaScript or jQuery, and is aimed at people who already write HTML and CSS.

What you’ll learn

  • Set a breakpoint with media queries so navigation changes at a specific screen width
  • Build a hamburger menu that opens and closes with a checkbox
  • Open and close a menu using only CSS and no JavaScript