On 09/11/2007 18:09, D A wrote:
> I'm trying to create a horizontal menu from a UL using both an image
> replacement technique along with the 'sprite' rollover technique.
>
> It works great in Firefox and IE7.
>
> However, in IE6 and below, the rollover works, but gets 'stuck'. It
> doesn't revert back when you 'unhover'. What's even odder is that once
> they are stuck, if you just resize the browser slightly, they then
> become unstuck.
>
> Is there a common IT bug that would cause that? Perhaps the haslayout
> issue (though I tried to use the ZOOM fix with no luck).
>
> Any suggestions appreciated!
>
> Sample:
>
> http://www.darrelaustin.com/stuff/navbar2/topnavigation.htm
>
Personally, I'd change the html to be:
<ul>
<li id="navHome" class="on"><a href="#">Home</a></li>
<li id="navForums"><a href="#">Forums</a></li>
<li id="navLinks"><a href="#">Links</a></li>
<li id="navWiki"><a href="#">Wiki</a></li>
<li id="navStore"><a href="#">Store</a></li>
<li id="navSearch"><a href="#">Search</a></li>
<li id="navAdvertise"><a href="#">Advertise</a></li>
<li id="navFeed"><a href="#">Feed</a></li>
<li id="navUndiesreviews"><a href="#">Undies Reviews</a></li>
<li id="navSitereview"><a href="#">Site Review</a></li>
</ul>
and then the css would be:
#navWrapper {
background: #1d6b9b;
width: 100%;
}
#navWrapper ul {
text-align: left;
margin: auto;
padding: 0px;
/* this is the total width of the menu images. Adjust as necessary
if you add/omit links */
width: 831px;
}
#navWrapper a {
cursor: pointer;
}
#navWrapper ul li {
float: left;
}
.clearAll {
clear: both;
}
#navWrapper li {
position: relative;
display: block;
background-position: 0px -28px;
height: 28px;
}
#navWrapper li a {
display: block;
text-indent:-999em;
background-position: 0px 0px;
width: 100%;
height: 100%;
}
#navWrapper li a:hover {
background-position: 0px -28px;
}
#navWrapper li.on a {
background-position: 0px -56px;
}
/* home */
li#navHome {
width: 55px;
}
li#navHome a {
background: url("images/nav_home.gif") no-repeat;
}
/* forums */
li#navForums {
width: 75px;
}
li#navForums a {
background: url("images/nav_forums.gif") no-repeat;
}
/* links */
li#navLinks {
width: 59px;
}
li#navLinks a {
background: url("images/nav_links.gif") no-repeat;
}
/* wiki */
li#navWiki {
width: 52px;
}
li#navWiki a {
background: url("images/nav_wiki.gif") no-repeat;
}
/* store */
li#navStore {
width: 64px;
}
li#navStore a {
background: url("images/nav_store.gif") no-repeat;
}
/* search */
li#navSearch {
width: 80px;
}
li#navSearch a {
background: url("images/nav_search.gif") no-repeat;
}
/* advertise */
li#navAdvertise {
width: 100px;
}
li#navAdvertise a {
background: url("images/nav_advertise.gif") no-repeat;
}
/* feed */
li#navFeed {
width: 61px;
}
li#navFeed a {
background: url("images/nav_feed.gif") no-repeat;
}
/* undiesreviews */
li#navUndiesreviews {
width: 147px;
}
li#navUndiesreviews a {
background: url("images/nav_undiesrev.gif") no-repeat;
}
/* sitereviews */
li#navSitereview {
width: 127px;
}
li#navSitereview a {
background: url("images/nav_siterev.gif") no-repeat;
}
--
http://antanova.blogspot.com
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/