Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-02-17 16:10:17

6sigma
Member
From: Memphis, TN, USA
Registered: 2004-05-24
Posts: 184
Website

CSS stopped validating...

I took a look at my CSS validation on rodentregatta.com this morning and found that it no longer validates. The error reported seems to be something that was in place back when the site did validate. Does anyone have suggestions on what needs to change? Thanks, as always.


“Well, I, uh, don’t think it’s quite fair to condemn a whole program because of a single slip-up, sir.” General ‘Buck’ Turgidson

Offline

#2 2006-02-17 16:44:03

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: CSS stopped validating...

Well, this is what it says:

Line: 213 Context : #header

Invalid number : line-height Parse Error – [empty string]

Looks like line-height can’t be 0.

Offline

#3 2006-02-17 20:17:39

paularms
Member
From: University of Minnesota
Registered: 2004-10-21
Posts: 155
Website

Re: CSS stopped validating...

The CSS Validator has a bug that returns a parse error when you have no units on a line-height number, even though line-heights are totally acceptable without a unit value. Your CSS technically validates.

Offline

#4 2006-02-17 20:18:55

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: CSS stopped validating...

Do you mean it would validate if it were 0px?

Offline

#5 2006-03-08 17:43:49

6sigma
Member
From: Memphis, TN, USA
Registered: 2004-05-24
Posts: 184
Website

Re: CSS stopped validating...

Here’s what the CSS validator says about my CSS:
<strong><em>
Errors
URI : http://rodentregatta.com/textpattern/css.php?s=default

* Line: 213 Context : #header Invalid number : line-height Parse Error – [empty string]</em></strong>

<br />
I see the error, but I have no idea what to do to fix it (or why it suddenly stopped validating over this matter).

Anyone got any (specific) advice? Thanks.


“Well, I, uh, don’t think it’s quite fair to condemn a whole program because of a single slip-up, sir.” General ‘Buck’ Turgidson

Offline

#6 2006-03-08 19:31:25

maarten
Member
From: Netherlands
Registered: 2005-02-19
Posts: 130
Website

Re: CSS stopped validating...

Well it’s just like doggiez says: add line-height : 0px ; (or 0em) to your CSS

Also it seems as <code>line-height: 1.0;</code> validates whereas <code>line-height: 1;</code> returns an error

Offline

#7 2006-03-08 19:52:01

6sigma
Member
From: Memphis, TN, USA
Registered: 2004-05-24
Posts: 184
Website

Re: CSS stopped validating...

paularms wrote:

The CSS Validator has a bug that returns a parse error…

I added the px today and it validates. Three weeks ago, it would not. Weird, but thanks for the help everyone.


“Well, I, uh, don’t think it’s quite fair to condemn a whole program because of a single slip-up, sir.” General ‘Buck’ Turgidson

Offline

Board footer

Powered by FluxBB