hasankaz
08-20-2009, 03:31 PM
Hi everyone,
Sorry I am a slow starter of CSS & came across with this bug recently, I am trying to acheive simple block hover links but some reason If I dont use Float command Firefox is not picking height which is 30px...... & if I use float IE7 start repeating character after last button.
<style>
a.NavLinks {
color:#333333;
margin-top: 1px;
text-transform:uppercase;
line-height:30px;
width:222px;
padding-left:7px;
text-decoration:none;
height:30px;
font-size:.7em;
background-color:#999999;
background-image:url("/images/Left_Nav_image.gif");
background-repeat:repeat-y;
}
a.NavLinks:hover{
margin-top: 1px;
/*float:left;*/
width:222px;
height:30px;
color:#999999;
text-decoration:none;
text-transform:uppercase;
background-color:#CCCCCC;
background-image:url("/images/Left_Nav__hoover-image.gif");
background-repeat:repeat-y;
}
</style>
<a href="/about/clinical-excellence" class="NavLinks">CLINICAL EXCELLENCE</a>
<a href="/about/performance" class="NavLinks">PERFORMANCE</a>
<a href="/about/management-team" class="NavLinks">MANAGEMENT TEAM</a>
<a href="/about/investors" class="NavLinks">INVESTORS</a>
<a href="/about/strategy" class="NavLinks">STRATEGY & VALUES</a>
<a href="/about/history" class="NavLinks">HISTORY</a>
<a href="/about/corporate" class="NavLinks">CORPORATE SOCIAL RESPONSIBILITY</a>
<a href="/about/news" class="NavLinks">PRESS CENTRE</a>
<a href="/about/contact-us" class="NavLinks" >CONTACT US</a>
Many thanks in advance
Sorry I am a slow starter of CSS & came across with this bug recently, I am trying to acheive simple block hover links but some reason If I dont use Float command Firefox is not picking height which is 30px...... & if I use float IE7 start repeating character after last button.
<style>
a.NavLinks {
color:#333333;
margin-top: 1px;
text-transform:uppercase;
line-height:30px;
width:222px;
padding-left:7px;
text-decoration:none;
height:30px;
font-size:.7em;
background-color:#999999;
background-image:url("/images/Left_Nav_image.gif");
background-repeat:repeat-y;
}
a.NavLinks:hover{
margin-top: 1px;
/*float:left;*/
width:222px;
height:30px;
color:#999999;
text-decoration:none;
text-transform:uppercase;
background-color:#CCCCCC;
background-image:url("/images/Left_Nav__hoover-image.gif");
background-repeat:repeat-y;
}
</style>
<a href="/about/clinical-excellence" class="NavLinks">CLINICAL EXCELLENCE</a>
<a href="/about/performance" class="NavLinks">PERFORMANCE</a>
<a href="/about/management-team" class="NavLinks">MANAGEMENT TEAM</a>
<a href="/about/investors" class="NavLinks">INVESTORS</a>
<a href="/about/strategy" class="NavLinks">STRATEGY & VALUES</a>
<a href="/about/history" class="NavLinks">HISTORY</a>
<a href="/about/corporate" class="NavLinks">CORPORATE SOCIAL RESPONSIBILITY</a>
<a href="/about/news" class="NavLinks">PRESS CENTRE</a>
<a href="/about/contact-us" class="NavLinks" >CONTACT US</a>
Many thanks in advance