Hi,
Over two years ago I created a css menu. Now my services are growing a little i need the menu to be drop down. but I am unsure how to do this. Can someone point me in the right direction with this. please bear in mind it is some time since I did css - I was bad then and even rustier now.
The drop down would need to be under web writer.
www.web-writer-articles.co.uk
the css is as follows:
And the html is as follows:Code:/* CSS Document */ /* to get the secondaryNav the same as the main nav width you need to find out what 23% (it was 23% instead of 25% to give 2% gutter) of the content area is. You do this by dividing 23 by 75 and then multiplying by 100. For padding add in %. this may have to be a guess at first, but what ever you add in padding take away in overall width in %*/ html,body{ margin:0; padding:0; } body{ background-color: #D7DFD8; padding:15px 0; } #wrapper{ width:98%; margin:0 auto; border:ridge thick #666666; max-width:1150px; min-width:800px;} #header{ float:left; width:100%; background-color:#FFFFFF; } #headleft{float:left; width:49%; } #headright{float:left; width:49%} /*--------------------------------------------menu------------------------------------------*/ ul.menu { clear:both; margin:0 0 1px; padding:0 2%; list-style:none; line-height:28px; background: url(http://www.web-writer-articles.co.uk/myimages/menu_but.jpg) repeat; text-align:left; font-family:Arial, Helvetica, sans-serif; } ul.menu li { display:inline; } ul.menu a { text-decoration:none; line-height:28px; font-size:93%; color: #fff; outline:0; font-weight:bold; padding:0 20px; } ul.menu a:hover { color:#FFFF00; } /*---------------------------------------end menu------------------------------------------*/ #mainContent{ float:left; width:1000px; background-color:#ffffff; } .dept{float:left; width:33%; background-color:#ffffff; } .intro{float:left; background-color:#ffffff; margin-top:10px; } .service{float:left; background-color:#ffffff; margin-top:10px;} #footer{ clear:both; background: #666666; } /*------------------------------------------pages-----------------------------------------*/ #mainNav{ float:left; width:15%; background-color:#99CC66; } #content{ float:left; width:85%; background-color:#ffffff; margin-bottom:20px; } #mainContent{ float:left; width:65%; background-color:#ffffff; padding-top:30px; padding-left:20px; padding-right:28px; } .maincontent{float:left; width:95%; background-color:#00CC66; font-size:16px; color:#ffffff; padding:3px; margin-bottom:20px;} .maincontent1{float:left; width:95%; background-color:#ffffff; font-size:14px; color:#333333; padding:17px; margin-bottom:20px;} .maincontent2{float:left; width:70%; background-color: #FDFEC5; color:#CEFCFF; padding:22px; margin-left:15%; margin-bottom:30px; border:medium outset #FF3300;} .maincontent3{float:left; width:90%; background-color: #FDFEC5; color:#CEFCFF; padding:17px; margin:15%; margin-bottom:10px; border:medium outset #FF3300;} .maincontent4{float:left; width:95%; background-color:#00CC66; font-size:16px; color:#ffffff; padding:8px; margin-bottom:20px; margin-left:20px;} .maincontent5{float:left; width:95%; background-color:#ffffff; border:medium outset #FF3300; font-size:14px; color:#333333; padding:17px; margin-top:30px; margin-bottom:20px;} .maincontent6{float:left; width:95%; background-color: #0099FF; font-size:16px; color:#ffffff; padding:8px; margin-bottom:20px; margin-left:20px;} .maincontent7{float:left; width:80%; background-color:#ffffff; border:medium outset #FF3300; font-size:14px; color:#333333; padding:17px; margin-left:70px; margin-top:30px; margin-bottom:20px;} .secondaryNav{ float:right; width:28%; background-color:#FFFF99; padding-left:8px; padding-top:30px; } #contactform{width: 85%; margin-left:25px; height:900px; float:left; border:medium outset #00cc66;} a.newlink:link{color:#ffffff; text-decoration:underline;} a.newlink:visited{color:#ffffff;text-decoration:underline} a.newlink:hover{ color:#FFFF00; text-decoration:underline;} a.general:link{color:#0099CC; text-decoration:none;} a.general:visited{color:#0099CC; text-decoration:none} a.general:hover{ color:#0033CC; text-decoration:underline;} .contacttext{padding:7px; color:#333333;} #textbody{float:left; width:95%; }
thanks for your helpCode:<body> <div id="wrapper"> <div id="header"><div id="headleft"><img src="myimages/copywriter_redone.png" alt="Web writer converts interest to sales and enhances traffic to your website" border="0" usemap="#Map4" title="web writer, web text and internet marketing. Web content at very reasonable prices. Ask me." /> <map name="Map4" id="Map4"><area shape="rect" coords="781,101,936,133" href="http://www.web-writer-articles.co.uk/contact.php" /> </map> </div><!--headleft--> <ul class="menu"> <li><a href="index.php">Home</a></li> <li><a href="webcontentservices.php">Web Writer</a></li> <li><a href="thisisme.php">About me </a></li> <li><a href="ghost_writer.php">Ghostwriter</a></li> <li><a href="http://www.web-writer-articles.co.uk/blog/"> SEO Guide</a></li> <li><a href="contact.php">Contact me</a></li> </ul> </div><!--header-->



Reply With Quote






Bookmarks