homepage Welcome to WebmasterWorld Guest from 54.82.1.136
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe and Support WebmasterWorld
Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderators: DrDoc

CSS Forum

    
W3C CSS parse error
url validation errors
danlab




msg:4414345
 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




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

You are specifying the URL of your CSS file?

What are the parse errors mentioned?

lucy24




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

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




msg:4414388
 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




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

:: 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




msg:4414411
 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




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

<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




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

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




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

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




msg:4414427
 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...

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / CSS
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved