Welcome to WebmasterWorld Guest from 54.159.2.45

Forum Moderators: not2easy

Message Too Old, No Replies

W3C CSS parse error

url validation errors

     

danlab

12:13 am on Feb 5, 2012 (gmt 0)



Hi, I need help, I validated style.css and slider.css with W3c css by direct input,everything ok passed no errors but if I validate by url I get:

Sorry! We found the following errors (1)
URI : (my url)
3 Parse Error }

I get the same error (line 3 Parse Error }) with all my url posts, pages etc..
If the error is not in my style.css can it be the header.php?


Thanks,
Daniel

penders

1:07 am on Feb 5, 2012 (gmt 0)

WebmasterWorld Senior Member penders is a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month



You are specifying the URL of your CSS file?

What are the parse errors mentioned?

lucy24

2:30 am on Feb 5, 2012 (gmt 0)

WebmasterWorld Senior Member lucy24 is a WebmasterWorld Top Contributor of All Time Top Contributors Of The Month



What URL are you giving the validator? The css file itself, or a file that uses the css?

Is the error in line 3 of the css or line 3 of the containing document?

danlab

3:04 am on Feb 5, 2012 (gmt 0)



css file is ok passed validation successful (copy and paste in the input field)

if I choose by url , I enter my blog url (not the css file) and I get the error

Same thing with website structure audit report (website auditor software) same error for each page of my blog.

Thanks,
Daniel

lucy24

4:03 am on Feb 5, 2012 (gmt 0)

WebmasterWorld Senior Member lucy24 is a WebmasterWorld Top Contributor of All Time Top Contributors Of The Month



:: peering into crystal ball ::

:: business with Windex and lint-free cloths ::

No luck. You're going to have to give us a hint. Like, say, the complete and exact text of the whole error message. Substitute "example.com" for your domain name anywhere it appears in the error.

You started out saying
style.css and slider.css

implying that you use external style sheets. Do they validate?

Unless the CSS is part of a very, very long HTML document, it shouldn't be necessary to use direct input. You had to do it that way a few years ago, but now the CSS validator will accept CSS within an HTML document. It could always read free-standing stylesheets, either by upload or by URL.

First step is to make sure the free-standing stylesheets themselves validate. Then you can step back and look at the documents that call the CSS.

danlab

4:20 am on Feb 5, 2012 (gmt 0)



Sorry I'm a newbie here and was not sure if it's ok to mention a website link... yes free-standing stylesheets validate.

W3C CSS Validator results for http://www.example.com (CSS level 2.1)
Sorry! We found the following errors (1)
URI : http://www.example.com
3 Parse Error }


Thanks,
Daniel

Same errors for all page or post links of the website.

[edited by: alt131 at 8:47 am (utc) on Feb 5, 2012]
[edit reason] Thread Tidy [/edit]

g1smd

5:15 am on Feb 5, 2012 (gmt 0)

WebmasterWorld Senior Member g1smd is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



<meta name="robots" content="index, follow" />
is the default and does not need to be specified.

<meta name="robots" content="index,follow,noodp,noydir" />
is a duplicate tag.


Line 3 of your "custom stylesheet" is where the CSS error is:

.wooslider .slider-container .slide-content { top: 292px } }



There's 320 warnings for your CSS. Ouch!

lucy24

5:31 am on Feb 5, 2012 (gmt 0)

WebmasterWorld Senior Member lucy24 is a WebmasterWorld Top Contributor of All Time Top Contributors Of The Month



not sure if it's ok to mention a website link

It isn't. That's why I said
Substitute "example.com" for your domain name anywhere it appears in the error.


I tried feeding your URL into the validator and it didn't come back with one error. It had one error and 320 warnings. If all 320 have to do with color and background-color you can ignore them. There should be an option for sorting by error type, but maybe that's only in the HTML validator.

***

Aha, that's what it means. The } itself is the error. But why the ### is it saying that the error is in the main document if it's in the stylesheet? I was tearing my hair out trying to figure out what was wrong with the <meta> tag in line 3.

g1smd

5:37 am on Feb 5, 2012 (gmt 0)

WebmasterWorld Senior Member g1smd is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



The error is within a stylesheet enclosed in <style> </style> tags embedded within the HTML page.

The line number count starts within the <style> </style> tags.

danlab

7:41 am on Feb 5, 2012 (gmt 0)



Now all my links validate without errors,cannot found the error in my style.css,slider.css and custom.css

I found .wooslider .slider-container .slide-content { top: 292px } } in the theme-functions.php That's why my css stylesheets validates but not my url.

Thanks g1smd and lucy24 I really appreciate, 3 days trying to figure out what was wrong, now i can work on the warnings...