Click to See Complete Forum and Search --> : Css
CiberTHuG
Sep 25th, 2001, 01:45 PM
I need good documentation on why this is not valid.
body {
background-color: #ffffff;
}
The W3C's doco is absolutely horrible. It does nothing to help promote the standard.
chrismitchell
Sep 25th, 2001, 02:03 PM
Try spelling color differently... :) Try spelling it: colour.. I don't know other than that!
scoutt
Sep 25th, 2001, 02:22 PM
is it for the background for the whole site? or just an element?
if for the whole site it is not valid, because you use this
body{
background: #FFFFFF;
}
and the background-color is for elements like <h1>
background (http://www.blooberry.com/indexdot/css/properties/colorbg/bg.htm)
background-color (http://www.blooberry.com/indexdot/css/properties/colorbg/bgcolor.htm)
CiberTHuG
Sep 25th, 2001, 02:58 PM
Well, I finally figured out what W3C was complaining about.
When you specify a background color you should specify a foreground color, too. It would suck if the user's CSS foreground color was the same as your document's background color.
The error message from W3C's validator just said "you have no color specified with background-color". That was confusing.
As to using background instead of background-color, that is a minor point. Both are supported in CSS2, but the validators do recommend using background unless you expressly need to set background-color and background-image differently. And even then, you can set both with background. Don't ask me why, I don't think they know.
DKCK
Sep 27th, 2001, 02:19 AM
Of course it also depends on what browser is used. With Netscape, just about anything with CSS is not valid...
CiberTHuG
Sep 27th, 2001, 08:24 AM
I very explicitly don't care about the browsers. All web development conforms to standards. If your browser has a problem viewing the page, then it has a problem with the standard. In those cases, I couldn't care less.
scoutt
Sep 27th, 2001, 09:51 AM
well said Citizen Travis :D
If only the browser company cared about that :rolleyes:
JoshT
Sep 27th, 2001, 10:40 AM
Yeah, but no browser seems to fully conform to the standards, and when they do, there will be new standards written. Also, the standards can be interpreted in slightly different ways - I know Opera has said this about slight rendering differences between it and other browsers.
DKCK
Sep 27th, 2001, 07:31 PM
I very explicitly don't care about the browsers. All web development conforms to standards. If your browser has a problem viewing the page, then it has a problem with the standard. In those cases, I couldn't care less.
You may not care less but those using browsers do..
JoshT
Sep 28th, 2001, 06:15 AM
A lot of "normal" users won't even know what browser they're using -- "I click the blue 'e' to go on the Internet"...
DKCK
Sep 28th, 2001, 07:17 AM
Most users don't even know what a browser is.
CiberTHuG
Oct 3rd, 2001, 11:29 AM
Originally posted by JoshT
Yeah, but no browser seems to fully conform to the standards, and when they do, there will be new standards written. Also, the standards can be interpreted in slightly different ways - I know Opera has said this about slight rendering differences between it and other browsers.
Yes, Opera's margins are bothering me right now, and Netscape still shows the outlines of invisible inputs.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.