background preloader

Site sympa

Facebook Twitter

Collapsing Site Navigation with jQuery. Today we will create a collapsing menu that contains vertical navigation bars and a slide out content area. When hovering over a menu item, an image slides down from the top and a submenu slides up from the bottom. Clicking on one of the submenu items will make the whole menu collapse […] View demoDownload source Today we will create a collapsing menu that contains vertical navigation bars and a slide out content area. When hovering over a menu item, an image slides down from the top and a submenu slides up from the bottom. The beautiful fashion photos are taken from Beyrouth’s photostream on flickr.

So, let’s get started! The Markup Our HTML will consist of a main container with the class and id “cc_menu”. The first item will get a z-index of 5 and then we will decrease the z-index for the next items. Each submenu item will share its class with the respective content div. Let’s take a look at the styling.

The CSS Our main div that surrounds everything will have the following style: Gites de charme Bretagne - Chambre d'hôte Saint Brieuc, Paimpol, Perros Guirec, Binic, Bréhat, Cotes d'Armor. Guillaume Bouvet. Pike Creek Whisky. Oblo projec. ZombieTweet. Wood Stock Creation. Babington House. The Beauty of Brewing.