Hi there can anyone help here...
I am trying to import my css file in my header which uses a browser detector and works fine in both ie and mozilla with this code:
<style type="text/css" media="screen">
<?php
if ($browser == 'ns6') {
echo '@import "includes/layout2.css";';
} else {
echo "@import \"{$_SERVER['DOCUMENT_ROOT']}/123/includes/layout1.css\";";
}
?>
</style>
however i would like to now change to {$_SERVER['DOCUMENT_ROOT']} so that i can call it from sub directories but now only works in ie and not mozilla:
<style type="text/css" media="screen">
<?php
if ($browser == 'ns6') {
echo "@import \"{$SERVER['DOCUMENT_ROOT']}/123/includes/layout2.css\";";
} else {
echo "@import \"{$SERVER['DOCUMENT_ROOT']}/123/includes/layout1.css\";";
}
?>
</style>
Please guys can someone help before i pull out all my hair...
Cheers Garth