Re: [css-d] CSS Validator Warnings
Sorry to waste your bandwidth... I found my own answer after digging just a little further: "If you don't specify color and background-color at the same level of specifity, your style sheet might clash with user style sheets. To avoid this, specify always both of them, see Section 9.1 "Color Contrast" in the W3C Note "CSS Techniques for Web Content Accessibility Guidelines 1.0" or the article CSS Color Issues by the CSS Pointers Group for a discussion." __ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7 List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
[css-d] CSS Validator Warnings
Can warnings like these be safely ignored when validating a CSS file? * Line : 9 (Level : 1) You have no color with your background-color : BODY * Line : 14 (Level : 1) You have no background-color with your color : A * Line : 35 (Level : 1) You have no background-color with your color : A:visited * Line : 43 (Level : 1) You have no background-color with your color : H1 * Line : 52 (Level : 1) You have no background-color with your color : P * Line : 61 (Level : 1) You have no background-color with your color : fieldset * Line : 228 (Level : 1) You have no background-color with your color : #topNav ul li * Line : 260 (Level : 1) You have no color with your background-color : #twoColumnBody * Line : 317 (Level : 1) You have no background-color with your color : #leftNav ul li * Line : 335 (Level : 1) You have no background-color with your color : #leftNav ul li ul li * Line : 352 (Level : 1) You have no background-color with your color : #leftNav ul li ul li ul li * Line : 388 (Level : 1) You have no color with your background-color : #mainContent * Line : 414 (Level : 1) You have no background-color with your color : #contentText * Line : 470 (Level : 1) You have no background-color with your color : #bottomNav ul li * Line : 480 (Level : 1) You have no color with your background-color : #footer * Line : 491 (Level : 1) You have no background-color with your color : #footerCredits * Line : 498 (Level : 1) You have no background-color with your color : .OptFormFieldLabel * Line : 503 (Level : 1) You have no background-color with your color : .ReqFormFieldLabel Why such warnings about colors? m __ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7 List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Re: [css-d] CSS validator warnings on color vs. background and "redefinition of padding"
Charles Dort wrote: > First, many of them are that I specified a background color but no > text color, or the reverse. [...] To correct this will require the > addition of several additional lines of code that to this beginner, > anyway, seem unnecessary. I am also a beginner, but I can tell you that this is worth correcting. My browser is configured to display white text on black background (much more comfortable to my poor eyes). If your CSS specifies, say, black color and no background color, to me it will display as black text on black background... Similarly, if you specify a light color as background, my white text will be unreadable. When you specify both, it's less comfortable to me than my default but still readable. Hope this makes sense to you :) Nicolas __ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Re: [css-d] CSS validator warnings on color vs. background and"redefinition of padding"
Afternoon Charles You wrote; >I am almost done with a table-based > XHTML/CSS redesign of my parish web > site. > > www.allsaintsofamerica.org/new_site/index.html > > My CSS validates, but there are tons of warnings. I feel unsettled not > correcting them, sort of like getting marks off by a teacher, but I > honestly > don't see the benefit of correcting many of them, and would like to ask > the > experts what the balance of risks and benefits is. > > First, many of them are that I specified a background color but no text > color, or the reverse. My reluctance in correcting this is that some of > my > present rules "work" with a foreground color in contexts of two different > background colors. Or vice versa: different background colors all of > which > work fine with a black text color. To correct this will require the > addition of several additional lines of code that to this beginner, > anyway, > seem unnecessary. > > > Thanks! > > Charles > A quick google of archivist.incutio.com (this list) [1] turned up a wealth of recent (and some not so)discussions on this topic. And some of the relevant links to this discussion can be found here [2] [3] Hope this helps [1] site:archivist.incutio.com + validator warnings [2] http://archivist.incutio.com/viewlist/css-discuss/63118 [3] http://archivist.incutio.com/viewlist/css-discuss/64795 Jim Nannery owner - www.redfernenterprises.com __ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
[css-d] CSS validator warnings on color vs. background and "redefinition of padding"
I am almost done with a table-based > XHTML/CSS redesign of my parish web site. www.allsaintsofamerica.org/new_site/index.html My CSS validates, but there are tons of warnings. I feel unsettled not correcting them, sort of like getting marks off by a teacher, but I honestly don't see the benefit of correcting many of them, and would like to ask the experts what the balance of risks and benefits is. First, many of them are that I specified a background color but no text color, or the reverse. My reluctance in correcting this is that some of my present rules "work" with a foreground color in contexts of two different background colors. Or vice versa: different background colors all of which work fine with a black text color. To correct this will require the addition of several additional lines of code that to this beginner, anyway, seem unnecessary. Second, there are several that say something like, "Redefinition of padding-left : #navlist a", and I honestly don't know what they mean. The CSS (at the moment) is here: www.allsaintsofamerica.org/new_site/css/allsaints.css Are these things that could pose risks in some way, and I should correct them, or are these things that I can ignore, and correcting which will only add unnecessary lines to my CSS? Thanks! Charles __ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/