SEbasic
Nov 24th 2004, 6:26 am
OK.
I'm having some real problems with a bit of navigation I am working on for a client site.
I have never had to produce a site with drop down menu's (Personally, I hate them but this time it has to be done.)
I have been looking into CSS dropdown menu's, but none of them seem to work on ie.
I'm pulling my hair out here.
I've been trying to sort this out all day.
Basically, this is what I have so far...
#menubar a {
text-decoration: none;
font-weight: normal;
}
#menubar {
border-bottom: 2px solid #212463;
background-color: #fff;
color: #5161AC;
height: 18px;
padding-top: 3px;
}
.menu {
width: auto;
float: left;
padding: 0px 14px 0px 15px;
cursor: default;
}
.menu ul {
display: none;
position: absolute;
background-color: #fff;
list-style: none;
border: 1px solid #5161AC;
}
.menu ul li {
display: block;
padding: 5px;
}
div.menu:hover ul {
display: block;
margin: 0;
padding: 0;
}
div.menu ul li:hover {
display: block;
background-color: #fff;
}
And Here's the HTML...
<div id="menubar">
<div id="menu1" class="menu">
<a href="#">MenuItem</a>
</div>
<div id="menu2" class="menu">
<a href="#">MenuItem</a>
</div>
<div id="menu3" class="menu">
<a href="#">DROPDOWN</a>
<ul>
<li><a href="#">MenuItem</a></li>
<li><a href="#">MenuItem</a></li>
<li><a href="#">MenuItem</a></li>
</ul>
</div>
<div id="menu4" class="menu">
<a href="#">MenuItem</a>
</div>
<div id="menu5" class="menu">
<a href="#">MenuItem</a>
</div>
<div id="menu6" class="menu">
<a href="#">MenuItem</a>
</div>
<div id="menu7" class="menu">
<a href="#">MenuItem</a>
</div>
<div id="menu8" class="menu">
<a href="#">MenuItem</a>
</div>
</div>
This works fine in Firefox, but when It comes to ie - no joy.
Does anyone know of a way to produce an SE friendly (preferably CSS but not essential) dropdown menu.
I took most of that Code from an example I found online (Stupidly I didn't check ie when I decided to use it... DUH!!!!).
Really, this is driving me nuts.
Cheers in advance
Oliver
I'm having some real problems with a bit of navigation I am working on for a client site.
I have never had to produce a site with drop down menu's (Personally, I hate them but this time it has to be done.)
I have been looking into CSS dropdown menu's, but none of them seem to work on ie.
I'm pulling my hair out here.
I've been trying to sort this out all day.
Basically, this is what I have so far...
#menubar a {
text-decoration: none;
font-weight: normal;
}
#menubar {
border-bottom: 2px solid #212463;
background-color: #fff;
color: #5161AC;
height: 18px;
padding-top: 3px;
}
.menu {
width: auto;
float: left;
padding: 0px 14px 0px 15px;
cursor: default;
}
.menu ul {
display: none;
position: absolute;
background-color: #fff;
list-style: none;
border: 1px solid #5161AC;
}
.menu ul li {
display: block;
padding: 5px;
}
div.menu:hover ul {
display: block;
margin: 0;
padding: 0;
}
div.menu ul li:hover {
display: block;
background-color: #fff;
}
And Here's the HTML...
<div id="menubar">
<div id="menu1" class="menu">
<a href="#">MenuItem</a>
</div>
<div id="menu2" class="menu">
<a href="#">MenuItem</a>
</div>
<div id="menu3" class="menu">
<a href="#">DROPDOWN</a>
<ul>
<li><a href="#">MenuItem</a></li>
<li><a href="#">MenuItem</a></li>
<li><a href="#">MenuItem</a></li>
</ul>
</div>
<div id="menu4" class="menu">
<a href="#">MenuItem</a>
</div>
<div id="menu5" class="menu">
<a href="#">MenuItem</a>
</div>
<div id="menu6" class="menu">
<a href="#">MenuItem</a>
</div>
<div id="menu7" class="menu">
<a href="#">MenuItem</a>
</div>
<div id="menu8" class="menu">
<a href="#">MenuItem</a>
</div>
</div>
This works fine in Firefox, but when It comes to ie - no joy.
Does anyone know of a way to produce an SE friendly (preferably CSS but not essential) dropdown menu.
I took most of that Code from an example I found online (Stupidly I didn't check ie when I decided to use it... DUH!!!!).
Really, this is driving me nuts.
Cheers in advance
Oliver