I myself wrote:
>
> How save and usefull is the following constuction:
>
> --------------------------------------------
>
> /* my.css with date of creation etc. */
>
> body {margin: 0; etc.}
>
> /*
>
> lot of
> styles
> here.
>
> */
>
> @import url(msie.css);
>
> --------------------------------------------
>
> I know, that MSIE/PC will import "msie.css" against the rules.
> Does any other browser import it too, or can I use it as a hack?
>
Jan Brasna answered:
>
> Better use something from
> <http://www.dithered.com/css_filters/css_only/>
>
Richard York answered:
>
> Why not just use conditional comments and avoid
> all the hacking business? ;-)
>
Thanks a lot to both of you.
And here is my answer:
This is the current state of the involved portions of my template.
---------------------------------------------------------------------
<!-- 'quirks mode' for IE6 - in conformity with standards -->
<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01//EN'
'http://www.w3.org/TR/REC-html40/strict.dtd'><html lang='de'>
<head>
<!-- beginning styles -->
<link rel='stylesheet' type='text/css' href='/CSS/basis.css'>
<!-- old browsers -->
<![if !lt IE7]>
<style type='text/css'>
@import url(/CSS/standard.css) all;
</style>
<![endif]>
<!-- modern browsers -->
<!--[if lt IE 7]>
<style type='text/css'>
@import url(/CSS/ie-pc.css);
</style>
<![endif]-->
<style type='text/css'>
/* \*//*/
@import "/CSS/ie-mac.css";
/* */
</style>
<script type='text/javascript'>
if(document.layers) {
document.write("link
href='/CSS/ns4.css' rel='stylesheet' type='text/css'");
}
</script>
<!-- ending styles -->
I suppose, we need to live with IE6 until 2009/2010, and
the lack of CSS2-support must be compensated via scripting.
Maybe I should link to one additional script, or could I
do it via 'behaviors' (HTC) without an additional script
inside the document?
What are you thinking about the construction at all?
How do I have to handle Safari? I have no Mac, and Apple
says, Safari behaves similarly Mozilla -- wich I doubt.
Do I need a special section for Safari?
Every suggestion would be appreciated.
regards,
Uwe Kaiser
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/