Previous Message
Next Message

css validation help

Sent by Erik Vorhes on 17 July 2009 13:01


On Fri, Jul 17, 2009 at 1:29 AM, Alan [EMAIL-REMOVED]> wrote:
>
> The best way is to only hack IE7 or lower since all modern browsers
> (including IE8) should render a page the same way. I would not recommend
> hacking your HTML with IE Conditional comments since they are not in one
> location and thus not easily removed.
>

Alan,

Decentralization of CSS may sometimes pose an issue, but using
conditional comments for IE isn't actually a hack. It's using a
proprietary Microsoft extension; every other browser simply treats
conditional comments as regular comments. The additional benefit of
conditional comments is that you can use other proprietary Microsoft
CSS extensions (e.g., "zoom" and various JScript expressions) within
them without causing your code to invalidate.

I'd actually argue that if your conditional IE 6-7 CSS files are so
big as to be unmaintainable, it's probably time to revisit how you're
doing your CSS to begin with.

Erik
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread: