View Full Version : CSS Help
12-11-2006, 09:59 AM
Can someone help me with these errors?
Line : 2 (Level : 1) You have no color with your background-color : body
(Level : 2) Redefinition of border-bottom-style : #break
Line : 60 (Level : 2) Redefinition of border-bottom-style : #break2
LINE2 background-color : #ffffff;
LINE60 border-bottom-style : dotted;
LINE52 border-bottom-style : dotted;
12-11-2006, 01:35 PM
If you actually read the document thatís producing those messages, youíll find that they are warnings, not errors. You may ignore them, but they may or may not be notable from an accessibility or efficiency perspective.
The first warning concerns readability issues. To address part of it, test your documents with images disabled to ensure that everything is still readable. To address the rest of it, donít assume that the default background color is white nor assume that the default text color as black. If someone changed their browserís default browsing colors to white text on a black background and youíve changed the background color to yellow assuming that the text will be black, the user will end up with unreadable white text on a yellow background; to prevent such issues, you would need to explicitly name the text color to be black instead of making an assumption.
The second warning is probably due to redundant code. For example, you may have used the same declaration twice in a single declaration block when doing so once would have sufficed. In the below example, the bottom border style will resolve to dotted. While the first declaration is valid, it is repetitive and unnecessary; in a word, it is inefficient.
The third error is probably caused by the second.
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.