/    Sign up×
Community /Pin to ProfileBookmark

extra spacing between vertical list menu items

The following page [url]http://wsdev.colostate.edu/cwis116/admmock/dsp_trn.cfm[/url]
renders the left navigation properly in mozilla and opera. There is extra space between list items in IE 6.0.
I looked in the forum, and saw the solution discussed as “holly hack” and tried with “height:1%” added to #leftnav li {} and #leftnav a {}. It did not work for me. How do you I fix this?
Thanks.

CSS:
#leftnav ul
{
margin: 0;
padding: 0;
list-style-type: none;
}

#leftnav a
{
display: block;
color: #FFF;
background-color: #030;
padding: 3px 12px 3px 8px;
text-decoration: none;
border-bottom: 1px solid #fff;
font-weight: bold;
}

#leftnav a:hover
{
background-color: #ddc642;
color: #FFF;
}

#leftnav li li a
{
display: block;
color: #FFF;
background-color: #050;
margin:0;
padding: 3px 3px 3px 17px;
text-decoration: none;
border-bottom: 1px solid #fff;
font-weight: normal;
height:1%;
}

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@FangMay 16.2005 — Add [I]width:100%;[/I] to [I]#leftnav a[/I]
Copy linkTweet thisAlerts:
@toicontienMay 16.2005 — If that doesn't work, you're running into an IE-Win bug that renders the source-code line breaks on screen after your </li> tags. This only occurs when you have a block display <a> tag inside a list item tag. I've always solved it by floating the LI tags for IE-Win:
<i>
</i>/* Hide from IE5-Mac */
* html #leftnav a {
float: left;
width: XXXpx;
}
×

Success!

Help @nch 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 6.2,
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: @meenaratha,
tipped: article
amount: 1000 SATS,

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

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...