By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,811 Members | 785 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,811 IT Pros & Developers. It's quick & easy.

Getting behavior property CSs error?

100+
P: 245
hey all,
I am developing a website and i am making website the w3c comliant.
i am trying to make css document valid. But i am getting errors

Property behavior doesn't exist : url("includes/csshover3.htc")
Property behavior doesn't exist : url(includes/iepngfix.htc)

i am using IEPNG fix script and it says to add these lines in your css in order to fix png in IE6. it fix the png problem but it does not make my CSS w3c standard compliant.

Pleaseeeeeee help me out to sort out my problem. i will be really very grateful to you guys. i am stick badly in this issue.

Hope i will get the solution of my problem from here.

here is the URL of my current website


kind regards,
Mohsin Rafique
Sep 15 '09 #1
Share this Question
Share on Google+
4 Replies


numberwhun
Expert Mod 2.5K+
P: 3,503
@neovantage
I am not sure where you are looking, but the site passes the validator just fine.

What were 2 warnings that didn't effect the validator, but you can fix those if you wish. Here is the error (its repeatued on the site):
Expand|Select|Wrap|Line Numbers
  1. In (x)HTML+CSS, floated elements need to have a width declared. Only elements with an intrinsic width (html, img, input, textarea, select, or object) are not affected
  2.  
Regards,

Jeff
Sep 15 '09 #2

drhowarddrfine
Expert 5K+
P: 7,435
That png fix script uses Microsoft's proprietary "behavior"'s which is not standard and only works in IE. You cannot be compliant while using them.
Sep 15 '09 #3

100+
P: 245
Thank you drhowarddrfine for clearing this issue. That is really very helpful information for me.

Numberwhun how can i remove those 2 warnings though i know it tells the floated element needs to have declared width. But as i am using the lightbox script so i dont have that much better understanding of it. I need to fix that too so how is that possible? Can you help me out more related to this issue.?
Sep 16 '09 #4

numberwhun
Expert Mod 2.5K+
P: 3,503
@neovantage
If you read what it is telling you, you should be able to figure it out. Specifically:

Expand|Select|Wrap|Line Numbers
  1. floated elements need to have a width declared
  2.  
I think if you were to declare a width where it says to, they should simply go away.

Either way, they are just warnings and not actual errors, so your site did pass. But props for wanting to correct even just the errors.

Regards,

Jeff
Sep 17 '09 #5

Post your reply

Sign in to post your reply or Sign up for a free account.