Style sheet has redundancies

liunx

Guest
<!-- m --><a class="postlink" href="nonehttp://www.cssdev.com/csstweak/i">nonehttp://www.cssdev.com/csstweak/i</a><!-- m --> did NOT remove the redundancies... you can do that.
compliant and a little better organized:

body {
color : #000000;
background-color : #ffffcc;
font-family : "Times New Roman", serif;
}

h1 {
font-family : "Times New Roman", serif;
font-size : large;
background-color : #ffffcc;
color : #003300;
margin-bottom : 0;
padding-bottom : 0;
}

.banner {
font-family : "Times New Roman", serif;
font-size : medium;
background-color : #ffffcc;
color : #003300;
margin-bottom : 0;
padding-bottom : 0;
}

a:visited {
background-color : #ffffcc;
color : #800000;
font-family : "Times New Roman", serif;
font-size : medium;
}

a:link {
text-decoration : none;
font-size : medium;
}

img.b {
float : right;
clear : right;
}

.gallery img {
float : right;
clear : right;
}

img.a {
float : left;
clear : left;
}

/* THIS APPLIES TO BLOCK LEVEL ELEMENTS ONLY.. WILL GIVE YOU A WARNING...
p.c1 {
text-align : right;
}
*/

p, ul, li, .section {
color : #800000;
font-family : "Times New Roman", serif;
background-color : #ffffcc;
font-size : medium;
}

li {
margin : 1px;
}

li a:link {
font-size : medium;
}

li a:visited {
background-color : #ffffcc;
color : #800000;
font-size : medium;
}

ul li a:link {
color: #800000;
background-color : #ffffcc;
font : medium "Times new roman", serif; }Many of the CSS "errors" that have to do with text and background colors are warnings -- not errors. The CSS validator is just saying "hey, if you change the background color of a parent element in the future, the text in this style might now show up."

That's all. Warnings are harmless during validation. If an employer or your client is anal retentive about it, tell them to look at the site. If the site operates fine and everything is readable, the warning is meaningless.ya but if it takes 2 seconds to fix it.. then fix it.
 
Back
Top