W3C home > Mailing lists > Public > www-validator-css@w3.org > November 2005

Re: problem validating sample stylesheet

From: Cyber Dog <cyberdog3k@gmail.com>
Date: Fri, 11 Nov 2005 00:41:39 -0500
Message-ID: <cbb8f04c0511102141x634ce471qd3137bf1fdfe2124@mail.gmail.com>
To: Michael <michael@nymans.co.uk>
Cc: www-validator-css@w3.org

On 11/9/05, Michael <michael@nymans.co.uk> wrote:
> Dear www-validator,
> I had problems validating your standard stylesheet as found at
> http://www.w3.org/TR/REC-CSS2/sample.html
> The validator complained in general about the 'alignment' property on some
> sections.
> After making some medications, as per the file attached, I was still unable
> to validate, the validator complaining about no background-color though one
> is plainly set.
> Please advise, as I am embarking on a new project and am anxious to start
> with an excellent and wholly valid stylesheet.
> thanks
> mike
> --
>  No virus found in this outgoing message.
>  Checked by AVG Free Edition.
>  Version: 7.1.362 / Virus Database: 267.12.8/163 - Release Date: 08/11/2005

Hi Mike,
  Your attached style sheet (Default.css) is valid CSS.  The
background-color warning in the validator is not an indication of
invalid CSS, although your confusion is understandable.  In fact,
setting your background-color to transparent is perfectly valid
according to the W3C recommendation.  Some people considering using
transparent "bad practice" which is the only reason the warning is
present in the validator.  For further explanation of this, check out
the list archives:
Received on Friday, 11 November 2005 05:41:43 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 27 June 2012 00:14:16 GMT