Box Menu – free, simple, small, responsive.

Multi-level dropdown website menu. Only pure JavaScript and CSS.

Menu provides keyboard use and possibility of freezing part of menu structure.

Navigation in menu:
TAB or SHIFT + TAB to move focus “box” through menu positions (right, left). ENTER key on node with submenu causes lock.
It’s possible to use mouse to lock expanded branch of menu like by using ENTER key.


Boxmenu is free for any use – personal, educational and commercial. See license.

Scheme of menu - manual draw.

Installation / configuration

Everything what is need is to add javascript and css styles.

Load files to your site localisation (for example in “box_menu” directory) and add this lines to your page file:

<link rel="stylesheet" href="box_menu/styles/box_menu.css">
<script src="box_menu/js/box_menu.js"></script>

Next add class “container-box-menu” to container.

<nav class=”container-box-menu”> or e.g. <div role=”navigation” class=”container-box-menu”> for accessibility and class “box-menu” for ul tag.

<nav class="container-box-menu">
  <ul class="box-menu">
    <li>
      <a href="#"> level 1 link_1 next line </a>
    </li>
  </ul>
</nav>

Example of multi-level menu: