Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
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
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
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
<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
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
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
Pages: 1