Solved

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

Posted on 2010-11-13
4
1,543 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
Comment Utility
Does the page display correctly and only the validation is broken?
0
 

Author Comment

by:technicalsys
Comment Utility
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
Comment Utility
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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer …
CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …

762 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

12 Experts available now in Live!

Get 1:1 Help Now