|
|
 |
Re: FN-FORUM: Sitecheck - Updating my website - using CSS
date posted 13th March 2008 17:15
> I know it passes the Acid2 test, but something's not right with it,
> because hacks to get IE6 working like:
> don't work in IE8
>
> I can only assume that it's not seeing the html>body declaration like a
> good browser should...
>
> and I haven't had time to check it for sure.
Why not include your IE6-specific styles in a stylesheet that's only
included for IE6, using conditional comments? Then you don't have to rely
on CSS hacks at all.
CSS hacks, as you're finding, only work until the next browser comes out
that treats the hacks differently...
Including IE6-specific CSS using conditional comments (if IE 6) will work
forever (IE6 will always load the additional styles, other browsers will
always ignore the include).
There may well be some browsers that can only be fixed using CSS hacks,
but any IE version that understands conditional comments should be fixed
that way, IMHO, for the reasons above.
Cheers!
Anthony
--
www.fonant.com - Quality web sites
|
 |
|