salmansohail
11-11-2009, 04:30 PM
Hi,
I written some CSS it works fine except in IE6 the visit page highlight block is not covering the entire height of my menu bar, here is the code:
/** Style for menu starts here */
#menu {
width: 800px;
height: 50px;
margin: 0px auto;
background: #264779;
}
#menu ul {
margin: 0px;
padding: 0 0 0 10px;
list-style: none;
}
#menu li {
display: inline;
}
#menu a {
display: block;
float: left;
padding: 14px 30px 10px 8px;
text-decoration: none;
color: #FFFFFF;
}
#menu a:hover {
color: #D7D7BD;
}
body#home a#homenav,
body#errorlogs a#errornav
{
color: #fff;
background: #FFC109; /**Yellow*/
font-weight: bold;
margin: 0px auto;
padding: 14px 20px 10px 20px;
text-decoration: none;
}
What is happening here is: the visit page highlight the respective menu but height of the menu block, is about 10px shorter than the height of the actual menu bar.
I written some CSS it works fine except in IE6 the visit page highlight block is not covering the entire height of my menu bar, here is the code:
/** Style for menu starts here */
#menu {
width: 800px;
height: 50px;
margin: 0px auto;
background: #264779;
}
#menu ul {
margin: 0px;
padding: 0 0 0 10px;
list-style: none;
}
#menu li {
display: inline;
}
#menu a {
display: block;
float: left;
padding: 14px 30px 10px 8px;
text-decoration: none;
color: #FFFFFF;
}
#menu a:hover {
color: #D7D7BD;
}
body#home a#homenav,
body#errorlogs a#errornav
{
color: #fff;
background: #FFC109; /**Yellow*/
font-weight: bold;
margin: 0px auto;
padding: 14px 20px 10px 20px;
text-decoration: none;
}
What is happening here is: the visit page highlight the respective menu but height of the menu block, is about 10px shorter than the height of the actual menu bar.