June 26, 200917 yr After joining here and reading a ton of posts I have ripped my very first website apart and started the CSS and HTML from scratch. I just put both in the W3C Validator and pleased that they only came back with 4 errors each. Most of the corrections were mistakes like missing semi colons and alt tags for images etc, but a couple I need help with. On the CSS it queries this: img, div, li, ul Property behavior doesn't exist : url(iepngfix.htc) I assume that's because that code is a hack/fix. Is there anyway to make it validate? It's my only error!! On the HTML it queries: No Character Encoding Found! Falling back to UTF-8. and No Character encoding declared at document level If anyone wants to actually look at either page the addresses are www.edenstreet.net/test.css and www.edenstreet.net/test.htm Thanks in advance!
June 26, 200917 yr Hi Put this in the head section of your html <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> As for the css, you can remove the part giving you problems are their is nothing in there Pat
June 27, 200917 yr Author Thanks for your reply Pat. I put the code in the Head section but it returned two errors.
June 27, 200917 yr Thanks for your reply Pat. I put the code in the Head section but it returned two errors. Sorry my mistake, didnt look at the doctype, use this <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" > Pat
June 27, 200917 yr For the png fix, i'd just move it into the actual document itself so you can use a conditional on it <!--[if lte IE 6]> <style type="text/css"> img, div, li, ul { behavior: url(iepngfix.htc) } </style> <![endif]--> So it only targets IE6 and lower, the problematic browsers.
Create an account or sign in to comment