astralaaron Posted February 6, 2008 Share Posted February 6, 2008 what language(s) should I look into learning if I want to make drop down menu's.I like the idea of them - help keep a site less cluttered.i've messed with php css and html so far Link to comment Share on other sites More sharing options...
Ingolme Posted February 6, 2008 Share Posted February 6, 2008 All you need is HTML, CSS and sometimes Javascript.Here's a basic example of a dropdown menu only using CSS:HTML:<a href="#" id="menu">Hover</a><ul><li>Menu item 1</li><li>Menu item 2</li><li>Menu item 3</li><li>Menu item 4</li></ul>CSS:a#menu + ul {display: none;}a#menu:hover + ul {display: block;} Link to comment Share on other sites More sharing options...
astralaaron Posted February 6, 2008 Author Share Posted February 6, 2008 <html><head><link rel="stylesheet" style="text/css" href="drop.css"></head><body><a href="#" id="menu">Hover</a><ul><li>Menu item 1</li><li>Menu item 2</li><li>Menu item 3</li><li>Menu item 4</li></ul></body></html>and css file:a#menu + ul {display: none;}a#menu:hover + ul {display: block;}didnt work Link to comment Share on other sites More sharing options...
Synook Posted February 6, 2008 Share Posted February 6, 2008 http://www.cssplay.co.uk/menus/ Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.