Forum Moderators: not2easy

Message Too Old, No Replies

drop down menu in IE does not work Help

drop down menu in IE does not work Help

         

mcmahon_mj

7:55 pm on Dec 29, 2006 (gmt 0)

10+ Year Member



Hi
I am trying to create a drop down menu via CSS. It works well in Firefox but it is dead in IE (I run IE7). Has any one had this issue. Below is a very much cut down of the code to keep it simple, all the buttons and nice format have gone.

Thanks in advance. As stated before i am a novice at this and trying to teach myself as i go along. Any help would be great.

<html>
<head>
<style>
/*main menu*/
.main-menu ul {
list-style: none;
padding: 0;
margin: 0;
}
/*drop down*/
.drop {
width: auto;
cursor: default;
}
div.drop ul {
list-style: none;
display: none;
position: absloute;
background-color: white;
color: black;
margin: 0.1em 0 0 0;
padding: 0;
font-family: Comic Sans MS;
font-size: 80%;
}
div.drop:hover ul {
display: block;
margin: 0;
padding: 0;
}
</style>
</head>
<body>
<div id="main-menu">
<a href="index.htm">Home</a>
<a href="news.shtml">News</a>
<div id="drop" class="drop">
<a href="#">Class Pages</a>
<ul>
<li><a href="class1.shtml">Class 1</a></li>
<li><a href="class2.shtml">Class 2</a></li>
</ul>
</div>
<a href="login.asp">Maintenance</a>
</div>
</body>
</html>

londrum

8:55 pm on Dec 29, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



div.drop:hover ul is the part that doesn't work.

go to the 'a list apart' website, and do a search for 'suckerfish dropdowns'. they have got an article on it, and a solution too... it's more complicated than it first seems.

mcmahon_mj

11:29 pm on Dec 29, 2006 (gmt 0)

10+ Year Member



Good link, thanks. I will give it a try first thing tomorrow and advise. Again thanks for your help

mcmahon_mj

9:25 pm on Dec 30, 2006 (gmt 0)

10+ Year Member



Thanks Londrum that sorted me after i had corrected my own mistakes.