Solved

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

Posted on 2010-11-13
4
1,547 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
  • 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 500 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

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…
As a result of several questions about how to use Bootstrap I thought it would be a good idea to write down the development aspect of creating a Bootstrapped website in as little time as possible. Part 1 of this article will only concentrate on g…
In this tutorial viewers will learn how add a full-size background image to a webpage using CSS3. Create a new HTML document with an internal stylesheet.: In CSS, define the html element to have a background image. Use a high resolution image.: In t…
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…

930 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now