By clicking “Accept All”, you agree to the storing of cookies on your device to enhance site navigation, analyse site usage, and assist in our marketing efforts
These cookies enable our website and App to remember things such as your region or country, language, accessibility options and your preferences and settings.
Analytic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.
Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.
Tazuk said:Ok i have just done a w3c check on my css and it has reported no errors but several warnings, mainly about no background colours etc. Does this mean it is valid w3c css or do i have to change the warnings?
TAZ
MacMyDay said:If we have to define everything in CSS, we may as well go back to using tables, as instead of changing 1 line, we have to change them all, unless we start using inherit, and then I don't see the point of that.
My advice: don't bother. And I'll wait for the revolt right about....now![]()
MacMyDay said:I meant the CSS tag, inherit. Not inheritance. That article's not related to what I was discussing, as that article will actually cause the warnings (please note, not errors). Everything you just said actually will cause the warnings. And yes, you can use tables, but that article doesn't cross me as exactly new. Plus, you have more power when not using tables for SPECIFIC layouts, which is the majority now. Otherwise, you have to end up with absolute positioning.
Now, if these warnings were really that bad, do you think the WC3 would have them in their own documents? No? Oh, that's interesting, cos they do.
http://jigsaw.w3.org/css-validator/validator?uri=http://w3.org&usermedium=all
Tazuk said:What would be the best course of action for the following:
Line : 19 (Level : 1) You have no background-color with your color : a:hover
Line : 19 (Level : 1) You have no background-color with your color : a:hover
Line : 19 (Level : 1) You have no background-color with your color : a:hover
Line : 25 (Level : 1) You have no background-color with your color : a:hover
Line : 38 (Level : 1) You have no background-color with your color : h1
Line : 43 (Level : 1) You have no background-color with your color : h2
Line : 48 (Level : 1) You have no background-color with your color : h3
Line : 54 (Level : 1) You have no background-color with your color : h4
Line : 59 (Level : 1) You have no background-color with your color : h5
Line : 76 (Level : 1) You have no background-color with your color : label
Line : 91 (Level : 2) You have some absolute and relative lengths in margin. This is not a robust style sheet.
Line : 93 (Level : 1) You have no color with your background-color : #navBar
Line : 102 (Level : 2) You have some absolute and relative lengths in padding. This is not a robust style sheet.
Line : 103 (Level : 1) This property applies to block-level elements. : #content
Line : 129 (Level : 1) You have no background-color with your color : #globalNav
Line : 131 (Level : 1) This property applies to block-level elements. : #globalNav
Line : 164 (Level : 1) This property applies to block-level elements. : .feature h3
Line : 193 (Level : 1) You have no background-color with your color : #siteInfo
Line : 258 (Level : 2) Redefinition of voice-family : #sectionLinks a:link
Line : 259 (Level : 2) Redefinition of width : #sectionLinks a:link
Line : 269 (Level : 1) You have no color with your background-color : #sectionLinks a:hover
I dont want any background colours as is said above, and the page works with no reported errors.
Cheers
TAZ
Tazuk said:Actually i have now sorted it and got rid of the warnings except for the background colour warnings which i can not see a way round.
MacMyDay said:Why is that, Dave? He still has warnings. Just like the WC3 do on their site. They are just that - warnings. They're warning you that your font MAY not appear as you're using two of the same colours, or not using a colour. But, it WILL appear if override them, and the WC3 test does NOT verify this by looking at the CSS sheet. It would involve looking at your XHTML, and then, it still may be overridden by another external CSS sheet. But that test is not determining it.
If you want to get rid of every warning, feel free. Myself, David Horn (sorry, Dave, but your site has 'warnings' too), the WC3, Microsoft, Apple, Firefox (the 3 main browser companies) will continue to ignore them.