> On 7/13/06, Marje Cannon <[EMAIL PROTECTED]> wrote:
> > What's the best free online validator. The one at W3C 
> throws up errors 
> > that are not errors.
> 
> the w3 one is THE validator.
> 
> > I continually get an error for specifying line-height this way:
> >
> > line-height: 2;
> >
> > and it keeps telling me that
> >
> > color: transparent
> >
> > is invalid
> 
> 2 WHAT?  you need a unit, px, em, %, etc....

Actually, the use of a unit is NOT required and indeed CAN cause problems if
included.
Eric Meyer has a great article about this very problem here:
http://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/

I assume you mean that background-color: transparent is throwing the error as I
can't imagine wanting transparent text. If you do want transparent text, a
visibility: hidden span inside the element will get you that.

Additionally, I receive lots of errors for various things that should work
correctly...transparent borders comes to mind. On this page
(http://www.w3schools.com/css/pr_border-color.asp), you can plainly see
border-color: transparent listed as an acceptable value, but this too will throw
an error in the validator.

The best advice I can give is get as close as you can and ensure that any errors
which are found by the validator are ones you accept and understand. If you want
the little icon on your page, I tend to include it (for clients that want it)
with an asterisk and a note about the errors in the page and/or the validator.

Hope that helps.
Bill Brown


|================================|
| Bill Brown                     |
| Webmaster, MacNimble.com       |
| http://www.macnimble.com       |
| mailto:[EMAIL PROTECTED]      |
| Phone: 215-237-2037            |
|================================|

______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to