CSS Definition List dropdown menu
9th August 2012
Suitable for IE7+, Firefox, Chrome, Safari, Opera and Safari Mobile browsers
copyright © stu nicholls - CSS play
Information
It has been a long time since I investigated the use of a definition list to produce a dropdown menu, so I thought that I would look at what is now possible with the latest CSS specifications.
So this menu just uses definition lists for each list item and works in all modern browsers (back as far as IE7) and has the top level items centered on the page and the dropdown sub menus can be left or right aligned with the top level items.
I have also added my method of allowing multi level menus to work on the iPad, iPhone and iPod Touch where a single tap of a top level link will open the sub menu and a second tap will go to that link page. When a sub menu is open then tapping anywhere outside of the menu will clost the sub menu.
Copyright
Because of all the time and effort spent in producing this demonstration
I would ask that you respect my copyright.
- If you are using this on a personal web site then please add a link back to CSSplay and retain any copyright comment in the stylesheet.
A donation to the 'Support CSSplay' fund would be appreciated. - If you are using this on a commercial web site, or as a paying job for a client, then please email me asking for permission - stu{at}cssplay.co.uk and in this case a donation to the 'Support CSSplay' fund is required.
- If you are having problems integrating any of my demonstrations into your website then I now offer a service to fault find and correct any errors that you may have introduced. Please email me for more information.