This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Stylesheets > September 2005 > line-height: empty string





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author line-height: empty string
Stan Brown

2005-09-23, 7:40 pm

My CSS file validates with one error message. I've stared at the
line in question, and I just can't see what's wrong. Could someone
maybe point out what I'm missing? Thanks very much!

validator:
> http://jigsaw.w3.org/css-validator/...=2&profile=css2

error message:
> * Line: 352 Context : div.clear
> Invalid number : line-height Parse Error - [empty string]

css file:
> http://oakroadsystems.com/screen.css


--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2.1 spec: http://www.w3.org/TR/CSS21/
validator: http://jigsaw.w3.org/css-validator/
Why We Won't Help You:

http://diveintomark.org/archives/20...e_wont_help_you
Els

2005-09-23, 7:40 pm

Stan Brown wrote:
[color=darkred]
> My CSS file validates with one error message. I've stared at the
> line in question, and I just can't see what's wrong. Could someone
> maybe point out what I'm missing? Thanks very much!
>
> validator:
> error message:
> css file:

I don't know why the validator insists on it, but if you just make it
0px, it passes validation.

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Now playing: Various - Skibby [Ft. King Lover] - Feel My Riddim
Jan Roland Eriksson

2005-09-23, 7:40 pm

On Fri, 23 Sep 2005 10:23:56 -0400, Stan Brown
<the_stan_brown@fastmail.fm> wrote:

>My CSS file validates with one error message. I've stared at the
>line in question, and I just can't see what's wrong.

[color=darkred]
>validator:
>error message:
>css file:

My guess is that this is a bug in the checking system.

It looks like it is programmed to check if 'line-height' is being
assigned a value "greater than zero" instead of "greater than or equal
to zero".

Negative numbers are not valid for 'line-height' but a value of zero
does not have a sign and so can not be seen as "negative".

--
Rex


Stan Brown

2005-09-23, 7:40 pm

On Fri, 23 Sep 2005 10:23:56 -0400 in
comp.infosystems.www.authoring.stylesheets, Stan Brown favored us
with...[color=darkred]
> My CSS file validates with one error message. I've stared at the
> line in question, and I just can't see what's wrong. Could someone
> maybe point out what I'm missing? Thanks very much!
>
> validator:
> error message:
> css file:

Fast work from Els and JRE -- thanks!

Summary: JRE said it looks like a bug, checking > instead of >=;
Els said that a workaround is to put 0px instead of 0. I've done
that and now my style sheet verifies with no warnings or errors.

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2.1 spec: http://www.w3.org/TR/CSS21/
validator: http://jigsaw.w3.org/css-validator/
Why We Won't Help You:

http://diveintomark.org/archives/20...e_wont_help_you
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews