Pure CSS Menus

Pure CSS menus are dropdowns, hamburger menus, sidebars and context menus that open and close with CSS only, using :hover, :focus-within or the checkbox technique.

9 free examples, most liked first. Click one to preview it and copy the code.

Menus FAQ

Can a dropdown menu work without JavaScript?

Yes. Use :hover or :focus-within on the parent to show the submenu, or a hidden checkbox as a toggle. The menu examples here use these techniques.

How do I use these pure CSS menus?

Open an example, copy the HTML and the CSS, and paste them into your page. There is nothing to install and no JavaScript to load.

More pure CSS examples