PDA

View Full Version : How to use external css with 1.54???


Cyclist
15th of May 2006 (Mon), 15:50
Since EE 2.0 is not ready now and it's unsure when it will be ready I am now in the progess of adapting EE 1.54 to my needs since I can't wait any longer.

But I have a big problem with including external css files.

I managed to include the standard css file modifying the mystyle.php in the styles dir. But my design needs some special css settings for IE which I usually include like

<!--[if lte IE 6]>
<link rel="stylesheet" type="text/css" href="/layout/css/ie6.css" media="screen, projection" />
<![endif]-->

This doesn't work if I put it in the mystyle.php. Is there any way to include this at some other place or how can this be solved? Otherwise my layout is destroyed in IE and only works with FF etc.

Pekka
15th of May 2006 (Mon), 16:47
You can include IE quirk hacks into normal CSS. But I would recommend designing cleanly, first for Mozilla and then see if anything can be done with IE (not really worth a lot of time).

See http://nanobox.chipx86.com/blog/2006/04/easy-css-hacks-for-ie7.php

PS. You have PM.

Cyclist
15th of May 2006 (Mon), 18:20
You can include IE quirk hacks into normal CSS. But I would recommend designing cleanly, first for Mozilla and then see if anything can be done with IE (not really worth a lot of time).

See http://nanobox.chipx86.com/blog/2006/04/easy-css-hacks-for-ie7.php

PS. You have PM.


Thanks. Meanwhile I managed to include it into mystyle.php. I Just forgot to mask it before! After masking it works.