WebsiteBaker Support (2.8.x) > Templates, Menus & Design

Multiple Stylesheets

<< < (2/2)

Ruud:

--- Quote from: cgryniewicz on November 09, 2008, 05:04:40 PM ---Yea, I'm mainly having problems with IE 6. I've tried using conditional statements in index.php.


--- Code: ---<link rel="stylesheet" type="text/css" href="<?php echo TEMPLATE_DIR; ?>/screen.css" media="screen" />
<!--[if IE 6]> <link rel="stylesheet" type="text/css" href="<?php echo TEMPLATE_DIR; ?>IE6_hacks.css" media="screen"> <![endif]-->

--- End code ---

But unfortunately IE  6 still loads screen.css.

--- End quote ---

Sure it will. This will load the IE6_hacks.css as an extra stylesheet for IE6.
In there you only add stuff needed to get IE6 to display better. The screen.css will always load.

There is no if - else - endif possible with these MS tricks. Other browsers will not recognise that.

Ruud

Navigation

[0] Message Index

[*] Previous page

Go to full version