WillisTi
09-15-2005, 07:37 PM
I just have the 3 validation errors on my external CSS files that are rather self-explanatory:
• Line : 160 (Level : 1) You have no background-color with your color : .style5navlist li
• Line : 168 (Level : 1) You have no background-color with your color : .style5navlist a:visited
• Line : 168 (Level : 1) You have no background-color with your color : .style5navlist a:visited
The thing is if I add the background: #FFFFFF; my horizontal menus at the top of the page appear but the vertical lines going down to separate each link disappear, obviously because the background color is white. But I want the background color as white which it was originally, but I try and correct these validation errors the vertical lines disappear instead of staying grey.
How can I correct this?
Heres the previous css which was fine apart from the above validation errors:
.style5navlist {
margin: 0;
padding: 0;
width: 50px;
font: 11px/14px Arial, verdana, helvetica, sans-serif;
border-right: none;
float: left;
}
.style5navlist li {
margin: 0;
padding: 0;
list-style-type: none;
display: block;
float: left;
text-align: center;
border-right: 1px solid #ccc;
color: #555555;
}
.style5navlist a:link, .style5navlist a:visited {
display: block;
padding: 0.50em 0;
font-weight: normal;
text-decoration: none;
color: #666;
width: 50px;
}
• Line : 160 (Level : 1) You have no background-color with your color : .style5navlist li
• Line : 168 (Level : 1) You have no background-color with your color : .style5navlist a:visited
• Line : 168 (Level : 1) You have no background-color with your color : .style5navlist a:visited
The thing is if I add the background: #FFFFFF; my horizontal menus at the top of the page appear but the vertical lines going down to separate each link disappear, obviously because the background color is white. But I want the background color as white which it was originally, but I try and correct these validation errors the vertical lines disappear instead of staying grey.
How can I correct this?
Heres the previous css which was fine apart from the above validation errors:
.style5navlist {
margin: 0;
padding: 0;
width: 50px;
font: 11px/14px Arial, verdana, helvetica, sans-serif;
border-right: none;
float: left;
}
.style5navlist li {
margin: 0;
padding: 0;
list-style-type: none;
display: block;
float: left;
text-align: center;
border-right: 1px solid #ccc;
color: #555555;
}
.style5navlist a:link, .style5navlist a:visited {
display: block;
padding: 0.50em 0;
font-weight: normal;
text-decoration: none;
color: #666;
width: 50px;
}