Advanced Search Usage Terms Submit Contact
Dynamic Drive CSS Library

CSS Library: Vertical CSS Menus: CSS3 demos: Here

Mobile full screen expand menu

Author: Dynamic Drive

Full screen menus are quite the rage these days, as they work out of the box across devices big and small with their large footprint. This mobile full screen menu expands itself to fill the whole page when activated, using the popular CSS checkbox adjacent sibling technique to toggle the menu between open and closed when the drawer style toggler is clicked on. The menu works across all modern browsers and mobile devices, while in IE8, a more limited interface is presented that's at least functional for those users.

Arbitrary Open Menu link
Arbitrary Close Menu link
Arbitrary Toggle Menu link

The CSS:


The menu comes with a companion JavaScript function that lets you toggle the state of the full screen menu beyond the built in interface, from anywhere on the page as you see fit. Just call the function:


with the "action" parameter being one of the following three choices: "open", "close", or empty. When called with no (or empty) parameter, the function will toggle the state of the full page menu. Here's an example:

<a href="#" onClick="expandfullscreenmenu()">Arbitrary Toggle Menu link</a>

Code Info

Rate this code:

Date Posted: 04/29/2015

Revision History: Jan 24' 16': Updated code to fix menu in Chrome iOS.

Usage Terms: Click here

Copyright 2006-2016 Dynamic Drive