been trying to create a drop down menu for a navigation bar but cant quite figure out what I'm doing wrong! I'd like the different seasons to dro down under the "season"s heading when the mouse is over it and also other topics to appear under the "about" heading instead og where they are at the moment. ive tried a coupla permutations with css, changing the divs etc and eveing creating unordered lists but cant quite get it.
here is my css, ill include it all
* { padding: 0; margin: 0; }
body {
font-family: Arial, Helvetica, sans-serif;
font-size: 13px;
}
#wrapper {
margin: 0 auto;
width: 922px;
}
#header {
width: 900x;
color: black;
padding: 10px;
border: 1x solid #ccc;
height: 100px;
margin: 5px 0px 5px 0px;
background: #C0D9D9;
}
#menubar {
border-top: 2px solid #e6e6e6;
border-right: 2px solid #b1b1b1;
border-bottom: 2px solid #b1b1b1;
border-left: 2px solid #e6e6e6;
background-color: #ccc;
color: #000;
height: 1.4em;
line-height: 1.2em;
}
.menu {
width: auto;
float: center;
padding: 0.1em 3em 0.1em 0.5em;
cursor: default;
}
.menu ul {
display: none;
position: absolute;
background-color: #e6e6e6;
color: black;
list-style: none;
margin: 0.1em 0 0 0;
padding: 0;
}
.menu ul li {
display: block;
padding: 0.2em;
}
div.menu:hover ul {
display: block;
margin: 0;
padding: 0;
}
div.menu ul li:hover {
background-color: #ccf;
}
#content {
width: 900px;
color: #333;
border: 1px solid #ccc;
background: #F2F2E6;
margin: 0px 0px 5px 0px;
padding: 10px;
height: 350px;
}
#footer {
width: 900px;
color: #333;
border: 1px solid #ccc;
background: #C0D9D9;
margin: 0px 0px 10px 0px;
padding: 10px;
}
and my html:
<div id="menubar" class="menu"> <a name="top"></a> <a href="index.html">Home</a> About Glen Moss <a href="about.html">About the area </a> <a href="gettinghere.html">Getting there</a> <a href="peatbog.html">What is a peatbog?</a> <a href="#">Seasons</a> <ul> <li><a href="spring.html" target="_blank">Spring</a></li> <li><a href="summer.html" target="_blank">Summer</a></li> <li><a href="autumn.html" target="_blank">Autunm </a></li> <li><a href="winter.html" target="_blank">Winter</a> </li> </ul> <a href="links.html">Useful Links</a> <a href="gallery.html">Gallery</a> <a href="contact.html">Contact Us </a> This is the Navigation </div>
if someone can give me a nudge in the right direction of how to get my drop down looking like it should id appreciate it!
thanks

New Topic/Question
Reply



MultiQuote





|