Subject: [css-d] IE 5 Margin Woes

From: css.rules at ntlworld.com (Standards R'Us)
Date: Tue, 29 Apr 2003 20:53:08 +0100

Hi all - newbie to the list - hope you all are well,

Now to the matters in hand, can anyone help/advise me on the following
point.

Firstly the CSS validates and the XHTML does as strict. 

But....IE 5 seems to ignore the margin for the nav.a and nav.a:hover
declaration set on my css in regards to the CSS below;

.nav{
background-image:url('../img/navbg.jpg');
background-repeat:no-repeat;
border-left:1px solid #CCCCCC;
border-right:1px solid #CCCCCC;
border-top:medium none;
margin:0px;
padding:0px;
width:780px
}
.nav a{
color:#000000;
font-family:Tahoma,sans-serif;
font-size:12px;
font-weight:normal;
line-height:52px;
margin-left:14px;    /ignores
margin-right:14px;  /ignores
padding:0px;
text-decoration:none;
text-transform:capitalize;
}
.nav a:hover{
color:#FF0000;
font-family:Tahoma,sans-serif;
font-size:12px;
line-height:52px;
margin-left:14px;    /ignores
margin-right:14px;  /ignores
text-decoration:none;
text-transform:capitalize;
}

Any suggestions?

TIA

Jeremy