Forum Moderators: not2easy

Message Too Old, No Replies

ul/li navigation & IE5

         

Tomash

9:51 am on Nov 7, 2003 (gmt 0)

10+ Year Member



Hi

I use ul/li navigation where the “bullet point” is an image (an arrow), which moves towards the link's text on :hover. The image is positioned in the background, the text is indented.

It works fine in IE 6, NS6.2+, but not in IE 5. There when the page opens, both bullets and text are about 50px further to the right than intended. But when I move the cursor over either the bullet or link, everything jumps back to its correct position. And stays there.

I would much appreciate any advice on how to get rid of this 'special effect'.

Thanks
*******

.left {
width: 190px;
}
.left ul {
margin: 0;
padding: 0;
list-style: none;
}
.left ul li {
}
.left ul li a {
width: 100%;
display: block;
text-indent: 25px;
text-decoration: none;
background: #fff url(../images/navup.gif) no-repeat 10px;
}
.left ul li a:hover {
text-decoration: underline;
background: #ccc url(../images/navhover.gif) no-repeat 15px;
}
.left ul ul {
margin: 0;
padding: 0;
}
.left ul ul li {
}
.left ul ul li a {
width: 100%;
display: block;
text-indent: 40px;
text-decoration: none;
background: #fff url(../images/navup.gif) no-repeat 30px;
}
.left ul ul li a:hover {
text-decoration: underline;
background: #ccc url(../images/navhover.gif) no-repeat 35px;

DrDoc

2:46 pm on Nov 7, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to Webmaster World!

A couple of things... list-style-type: none; should be applied to .left ul li, since the list items have bullets, not the list itself.

As for the "jumping", that's a common IE bug. Was trying to find some information about it, but I forgot what it's called. Anyone else who can fill in?

photon

5:48 pm on Nov 7, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Try here [webmasterworld.com]. Look at SuzyUK's post (message #7).

Tomash

11:07 am on Nov 10, 2003 (gmt 0)

10+ Year Member



Thank you very much for your help.

Tomas