johnosbourn
05-15-2008, 06:05 AM
Hey guys, so I am having some trouble with my drop down menu working in IE and FF, I am trying to repeat that three time throughout the page, and the drop down menu only works on one of the 3 times I'm trying to use it. Please help. Thanks! Below is the html and the css
<div class="chromestyle" id="chromemenu">
<ul>
<li><a href="#" rel="dropmenu1">What We Have to Offer</a></li>
<li><a href="#" rel="dropmenu2">About L.H.S.</a></li>
<li><a href="#">Coaches</a></li>
<li><a href="#">Testimonials</a></li>
<li><a href="#">Upcoming Events</a></li>
<li><a href="#">Contact</a></li>
</ul>
</div>
<!--1st drop down menu -->
<div id="dropmenu1" class="dropmenudiv">
<a href="parents.html">Parents</a>
<a href="coachesteams.html">Coaches/Teams</a>
<a href="athletes.html">Athletes</a>
<a href="signup.html">Signup</a>
</div>
<!--2nd drop down menu -->
<div id="dropmenu2" class="dropmenudiv" style="width: 150px;">
<a href="phil.html">Philosophy</a>
<a href="aim.html">Aim</a>
<a href="programdesign.html">Program Design</a>
<a href="signup.html">Sign-Up</a>
</div>
<!--3rd drop down menu -->
<div id="dropmenu3" class="dropmenudiv" style="width: 150px;">
<a href="#">Post Play</a>
<a href="#">Put Back</a>
<a href="#">Mikan Drill</a>
<a href="#">Resistance Training</a>
<a href="#">Plyometrics</a>
<a href="#">Verticle Jump</a>
<a href="#">Strength and Agility Training</a>
<a href="#">Endurance</a>
</div>
<script type="text/javascript">
cssdropdown.startchrome("chromemenu")
</script>
.chromestyle{
width: 99%;
font-weight: bold;
}
.chromestyle:after{ /*Add margin between menu and rest of content in Firefox*/
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
.chromestyle ul{
width: 100%;
padding: 4px 0;
margin: 0;
text-align: center; /*set value to "left", "center", or "right"*/
}
.chromestyle ul li{
display: inline;
}
.chromestyle ul li a{
color: #FFFFFF;
padding: 4px 7px;
margin: 0;
text-decoration: none;
border-right: 1px solid #DADADA;
}
.chromestyle ul li a:hover{
}
.chromestyle ul li a[rel]:after{ /*HTML to indicate drop down link*/
content: " v";
/*content: " " url(downimage.gif); /*uncomment this line to use an image instead*/
}
/* ######### Style for Drop Down Menu ######### */
.dropmenudiv{
position:absolute;
top: 0;
border: 1px solid #BBB; /*THEME CHANGE HERE*/
border-bottom-width: 0;
font:normal 12px Verdana;
line-height:18px;
z-index:100;
background-color: white;
width: 200px;
visibility: hidden;
filter: progid:DXImageTransform.Microsoft.Shadow(color=#CACACA,direction=135,strength=4); /*Add Shadow in IE. Remove if desired*/
}
.dropmenudiv2{
position:absolute;
top: 0;
border: 1px solid #BBB; /*THEME CHANGE HERE*/
border-bottom-width: 0;
font:normal 12px Verdana;
line-height:18px;
z-index:100;
background-color: white;
width: 200px;
visibility: hidden;
filter: progid:DXImageTransform.Microsoft.Shadow(color=#CACACA,direction=135,strength=4); /*Add Shadow in IE. Remove if desired*/
}
.dropmenudiv a{
width: auto;
display: block;
text-indent: 3px;
border-bottom: 1px solid #BBB; /*THEME CHANGE HERE*/
padding: 2px 0;
text-decoration: none;
font-weight: bold;
color: black;
}
* html .dropmenudiv a{ /*IE only hack*/
width: 100%;
}
.dropmenudiv a:hover{ /*THEME CHANGE HERE*/
background-color: #F0F0F0;
}
<div class="chromestyle" id="chromemenu">
<ul>
<li><a href="#" rel="dropmenu1">What We Have to Offer</a></li>
<li><a href="#" rel="dropmenu2">About L.H.S.</a></li>
<li><a href="#">Coaches</a></li>
<li><a href="#">Testimonials</a></li>
<li><a href="#">Upcoming Events</a></li>
<li><a href="#">Contact</a></li>
</ul>
</div>
<!--1st drop down menu -->
<div id="dropmenu1" class="dropmenudiv">
<a href="parents.html">Parents</a>
<a href="coachesteams.html">Coaches/Teams</a>
<a href="athletes.html">Athletes</a>
<a href="signup.html">Signup</a>
</div>
<!--2nd drop down menu -->
<div id="dropmenu2" class="dropmenudiv" style="width: 150px;">
<a href="phil.html">Philosophy</a>
<a href="aim.html">Aim</a>
<a href="programdesign.html">Program Design</a>
<a href="signup.html">Sign-Up</a>
</div>
<!--3rd drop down menu -->
<div id="dropmenu3" class="dropmenudiv" style="width: 150px;">
<a href="#">Post Play</a>
<a href="#">Put Back</a>
<a href="#">Mikan Drill</a>
<a href="#">Resistance Training</a>
<a href="#">Plyometrics</a>
<a href="#">Verticle Jump</a>
<a href="#">Strength and Agility Training</a>
<a href="#">Endurance</a>
</div>
<script type="text/javascript">
cssdropdown.startchrome("chromemenu")
</script>
.chromestyle{
width: 99%;
font-weight: bold;
}
.chromestyle:after{ /*Add margin between menu and rest of content in Firefox*/
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
.chromestyle ul{
width: 100%;
padding: 4px 0;
margin: 0;
text-align: center; /*set value to "left", "center", or "right"*/
}
.chromestyle ul li{
display: inline;
}
.chromestyle ul li a{
color: #FFFFFF;
padding: 4px 7px;
margin: 0;
text-decoration: none;
border-right: 1px solid #DADADA;
}
.chromestyle ul li a:hover{
}
.chromestyle ul li a[rel]:after{ /*HTML to indicate drop down link*/
content: " v";
/*content: " " url(downimage.gif); /*uncomment this line to use an image instead*/
}
/* ######### Style for Drop Down Menu ######### */
.dropmenudiv{
position:absolute;
top: 0;
border: 1px solid #BBB; /*THEME CHANGE HERE*/
border-bottom-width: 0;
font:normal 12px Verdana;
line-height:18px;
z-index:100;
background-color: white;
width: 200px;
visibility: hidden;
filter: progid:DXImageTransform.Microsoft.Shadow(color=#CACACA,direction=135,strength=4); /*Add Shadow in IE. Remove if desired*/
}
.dropmenudiv2{
position:absolute;
top: 0;
border: 1px solid #BBB; /*THEME CHANGE HERE*/
border-bottom-width: 0;
font:normal 12px Verdana;
line-height:18px;
z-index:100;
background-color: white;
width: 200px;
visibility: hidden;
filter: progid:DXImageTransform.Microsoft.Shadow(color=#CACACA,direction=135,strength=4); /*Add Shadow in IE. Remove if desired*/
}
.dropmenudiv a{
width: auto;
display: block;
text-indent: 3px;
border-bottom: 1px solid #BBB; /*THEME CHANGE HERE*/
padding: 2px 0;
text-decoration: none;
font-weight: bold;
color: black;
}
* html .dropmenudiv a{ /*IE only hack*/
width: 100%;
}
.dropmenudiv a:hover{ /*THEME CHANGE HERE*/
background-color: #F0F0F0;
}