|
Thread: Css
-
Sep 25th, 2001, 01:45 PM
#1
Thread Starter
Frenzied Member
Css
I need good documentation on why this is not valid.
Code:
body {
background-color: #ffffff;
}
The W3C's doco is absolutely horrible. It does nothing to help promote the standard.
Travis, Kung Foo Journeyman
As always, RTFM.
WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
YBMS, but Mozilla doesn't.
-
Sep 25th, 2001, 02:03 PM
#2
Fanatic Member
Try spelling color differently... Try spelling it: colour.. I don't know other than that!
-
Sep 25th, 2001, 02:22 PM
#3
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
background-color
-
Sep 25th, 2001, 02:58 PM
#4
Thread Starter
Frenzied Member
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.
Travis, Kung Foo Journeyman
As always, RTFM.
WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
YBMS, but Mozilla doesn't.
-
Sep 27th, 2001, 02:19 AM
#5
Hyperactive Member
Of course it also depends on what browser is used. With Netscape, just about anything with CSS is not valid...
-
Sep 27th, 2001, 08:24 AM
#6
Thread Starter
Frenzied Member
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.
Travis, Kung Foo Journeyman
As always, RTFM.
WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
YBMS, but Mozilla doesn't.
-
Sep 27th, 2001, 09:51 AM
#7
well said Citizen Travis
If only the browser company cared about that
-
Sep 27th, 2001, 10:40 AM
#8
Black Cat
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.
Josh
Get these: Mozilla Opera OpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.
-
Sep 27th, 2001, 07:31 PM
#9
Hyperactive Member
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..
-
Sep 28th, 2001, 06:15 AM
#10
Black Cat
A lot of "normal" users won't even know what browser they're using -- "I click the blue 'e' to go on the Internet"...
Josh
Get these: Mozilla Opera OpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.
-
Sep 28th, 2001, 07:17 AM
#11
Hyperactive Member
Most users don't even know what a browser is.
-
Oct 3rd, 2001, 11:29 AM
#12
Thread Starter
Frenzied Member
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.
Travis, Kung Foo Journeyman
As always, RTFM.
WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
YBMS, but Mozilla doesn't.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|