/    Sign up×
Community /Pin to ProfileBookmark

Navigation list renders incorrectly in IE 5.0

Hello all,

Can anyone get this to render correctly in IE 5.0?

It is fine in Firefox, Opera, IE 6.0 & 5.5 and Netscape 6.0, but in IE 5.0 it puts a white space between each element.

Cheers,
R

<html>
<head>
<style type=”text/css”>
#link {
position:absolute;
left:13px;
top:10px;
width:118px;
font-family:arial, sans-serif;
font-size:8pt;
color:#031758;
}

#link ul {
margin:0;
padding:0;
border:0;
list-style:none;
}

#link li a {
display:block;
height:15px;
line-height:15px;
border:solid #B98246;
border-width:1px 1px 0px 1px;
background-color:#E3A869;
color:#0B206A;
text-decoration:none;
font-weight:bold;
text-align:center;
}

#link li a:hover {
background-color:#0B206A;
color:#FFFFFF;
}

#link li.ienav a {
border-bottom:1px solid #B98246;
}

#link li.ienav a:hover {
border-bottom:1px solid #B98246;
}
</style>
</head>
<body>
<div id=”link”>
<ul>
<li><a href=”#” title=”Home”>Home</a></li>
<li><a href=”#” title=”Prices”>Prices</a></li>
<li><a href=”#” title=”Contact us”>Contact us</a></li>
<li><a href=”#” title=”Directions”>Directions</a></li>
<li><a href=”#” title=”Printable version”>Printable version</a></li>
<li class=”ienav”><a href=”#” title=”Links”>Links</a></li>
</ul>
</div>
</body>
</html>

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@richiebmanauthorJul 05.2004 — Abort, abort.

Many apologies, but I think I've sorted it. I've discovered

display:inline;

in one of the posts below.

I put it in #link ul li and put the width in #link li a, and it works. Woo hoo.

Sorry if I wasted anyones time.

R
Copy linkTweet thisAlerts:
@David_HarrisonJul 05.2004 — I think the real reason was that you still had the default margins on the li's, I think that the problem went away when you added display:inline; because inline elements can't have any margins, but don't quote me on that.
×

Success!

Help @richiebman spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.20,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...