?
Solved

How to resolve CSS Validation Error - Property behavior doesn't exist

Posted on 2010-11-13
4
Medium Priority
?
1,573 Views
Last Modified: 2012-08-13
Hi All,

When I try to validate my css I keep getting the following error:

Property behavior doesn't exist : url(iepngfix.htc) url(iepngfix.htc)

Sample files attached (PNG Issue 13Nov10.rar)
Main contents -
inner Page_version2.html - HTML file where the css is being called
\stylesheet\IEFix.css - css file (check line number 182: .artist-title-newbg)
iepngfix.htc - png fix file for IE 6.0
readme.txt

I need to fix this error as soon as possible as my designs do not work without this png fix.

I am using the following link for CSS validation:

http://jigsaw.w3.org/css-validator/#validate-by-upload

Any solution would be highly appreciated.

Thanks in advance.
 IEFix.css iepngfix.txt read-me.txt inner-Page-version2.html
0
Comment
Question by:technicalsys
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 29

Expert Comment

by:Badotz
ID: 34127433
Does the page display correctly and only the validation is broken?
0
 

Author Comment

by:technicalsys
ID: 34135277
Yes the page works fine. Its only about not validating aginst w3c standards.
0
 
LVL 1

Accepted Solution

by:
Martin_Kool earned 1500 total points
ID: 34136028
The css contents does not validate because it's not valid CSS. The validator does exactly what it needs to do.

It's up to you to decide whether that should prevent you from deploying the png fix. Obviously there is no simple way to make the validator ignore invalid CSS.

At best you could use javascript to add the stylesheet to the page, or another method that makes the stylesheet invisible to the validator and makes the page appear fully standards compliant. Even though you and I will still know it isn't ;)
0
 

Author Closing Comment

by:technicalsys
ID: 34471382
It gave me a rough idea though i have to work completely on it and searched web for it.but still it helped to show me the right path.
0

Featured Post

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a how to build your own CSS3 slideshow and when I say CSS3 I mean just CSS with no javascript in sight! There a few examples online of how to do this but most just show you an example without any explanation, others make it more complicat…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Suggested Courses
Course of the Month12 days, 9 hours left to enroll

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question