Hey people!
I’ve used an online help site to construct a CSS-Based Dropdown Menu. It works perfectly. I just need a little advice to help me tweak it a bit.
My code is as follows:
<div id="container">
<div id="menu">
<ul id="item1">
<li class="top"><img src="/wp-content/themes/thepink/images/home.png" height="30px" width="80px" /></li>
</ul>
<ul id="item2">
<li class="top"><img src="/wp-content/themes/thepink/images/community.png" height="30px" width="125px" /></li>
<li class="item"><a href="/forum/">Forums</a></li>
<li class="item"><a href="/chat/">Chat</a></li>
<li class="item"><a href="/aboutcommunity/">About the Community</a></li>
</ul>
<ul id="item3">
<li class="top"><img src="/wp-content/themes/thepink/images/videos.png" height="30px" width="90px" /></li>
<li class="item"><a href="/browsevideos/">Browse Videos</a></li>
<li class="item"><a href="/aboutparenttv/">About ParentChannel.TV</a></li>
</ul>
<ul id="item4">
<li class="top"><img src="/wp-content/themes/thepink/images/shop.png" height="30px" width="85px" /></li>
<li class="item"><a href="#">Browse Auctions</a></li>
<li class="item"><a href="#">Browse Classifieds</a></li>
<li class="item"><a href="#">Create an Ad/Listing</a></li>
<li class="item"><a href="#">About The 1-Stop</a></li>
</ul>
<ul id="item5">
<li class="top"><img src="/wp-content/themes/thepink/images/astrology.png" height="30px" width="125px" /></li>
<li class="item"><a href="#">Daily Horoscopes</a></li>
<li class="item"><a href="#">Romance</a></li>
<li class="item"><a href="#">Personal Reports</a></li>
</ul>
<ul id="item6">
<li class="top"><img src="/wp-content/themes/thepink/images/charts_tools.png" height="30px" width="150px" /></li>
<li class="item"><a href="#">Baby Name Finder</a></li>
<li class="item"><a href="#">Due Date Calculator</a></li>
<li class="item"><a href="#">Ovulation Predictor</a></li>
<li class="item"><a href="#">Weight Charts</a></li>
</ul>
<ul id="item7">
<li class="top"><img src="/wp-content/themes/thepink/images/fun_games.png" height="30px" width="150px" /></li>
<li class="item"><a href="#">Pre-School Games</a></li>
<li class="item"><a href="#">Educational Games</a></li>
<li class="item"><a href="#">Other Games</a></li>
</ul>
body {
font-family:georgia;
}
#container {
width:100%;
margin:auto;
font-size:11pt;
}
#menu {
position:absolute;
margin-top:10px;
}
#menu ul .item {
display:none;
}
#menu ul:hover .item {
position: relative;
display:block;
background:#000;
padding:1px;
margin:1px;
}
#menu ul:hover .item a {
color:#fff;
text-decoration: none;
}
#menu ul:hover .item a:hover {
color:#999;
}
#menu ul {
float:left;
margin:0px;
padding:2px;
background:#b10000;
list-style:none;
}
.clear {
clear:both;
height:10px;
}
I just have three questions:
-
Is the menu WC3 compliant? If not, how do I change it to make it so.
-
How can I stop the “Top” menu buttons from moving when the menu that pops up underneath is wider than the button itself?
-
I’ve been told this does not work on an iPhone/iPod - How can I change it so that it’s more universal?
Many thanks in advance for your support.