W3C home > Mailing lists > Public > w3c-wai-ig@w3.org > July to September 2002

RE: validator questions-css/html 4.01 trans

From: Marek Prokop <mprokop@prokopsw.cz>
Date: Fri, 30 Aug 2002 10:15:59 +0200
Message-ID: <01C2500E.3F5B2FA0.mprokop@prokopsw.cz>
To: "w3c-wai-ig@w3.org" <w3c-wai-ig@w3.org>

The Snider's Web [SMTP:lsnider@thesnidersweb.com] wrote:
> When I put the css through the w3c css validator
> it warns me to put in a colour for the links.
> I didn't put a colour in for the link and visited
> link as I wanted them to remain the normal
> default colour. Do I still have to list these colours
> to be sure?

Well, you may want to leave the default color for the links, but 
in this case you shouldn't redefine the background color too. 
The validator warns you when you change color or 
background-color leaving the second default. It's not an error, 
message, it's only a warning.

Why? Suppose a user set up her browser to use gray text on blue 
background, yellow links and white visited links. Then you 
define white background and black text in your style sheet 
leaving the link color default. What happens is that the user 
will not be able to see visited links at all, because they will 
be rendered white on white. Also yellow links in the white 
background wouldn't be much readable.

Hope this helps.

Received on Friday, 30 August 2002 04:31:37 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:36:11 UTC