On Wed, 09 Jan 2008 13:32:39 -0500
Nancy Johnson wrote:

[snip]

> 
> Is @import?
> 
> or
> 
> <!--[if IE.xx]>
> <link rel="stylesheet" type="text/css" media="screen"
> href="/css/IEstylesheet.css" /> <![endif]-->
> 
> a better way?
> 

Conditional comments are by far the safer and generally more preferred
method.

However, my personal preference is for the @import hack:
FOR
 * The CSS stays in the css files (doesn't cause you to hack the header)
 * Create code for the standards compliant browsers then hack for IE
 * All IE hacks are in a seperate file
 * It may not need to work for IE8 and above
 * comment conditional code is _ugly_ HTML
 * no javascript engine required

AGAINST
 * It is a non-standard hack
 * It may not work with IE8 and above
 * Extra CSS file on server - 1 extra dowload (usually <1kb)

Others may add to this list

[snip]

-- 
Michael

All shall be well, and all shall be well, and all manner of things shall
be well

 - Julian of Norwich 1342 - 1416
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
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/

Reply via email to