Quote:
Originally Posted by Kraetos
About a 2. And half of that 2 is because its already preinstalled on my server
Going back to PHP, would this do the trick:
[PHP]<style type="text/css">
<?php
$_SERVER['HTTP_USER_AGENT'] = $browser;
if (stristr ($browser,"msie")) {
require 'css/navoverride.css'; // the CSS required to kill the IE-offending div is here
}
?>
</style>[/PHP]
|
It looks correct, except I think you need to switch $browser and $_SERVER['HTTP_USER_AGENT']. Also, I think that require() will automatically include the 'css/navoverride.css', whether the person is browsing with Internet Explorer or not. I think this should work correctly.
[PHP]<style type="text/css">
<?php
$browser = $_SERVER['HTTP_USER_AGENT'];
if (stristr ($browser,"msie")) {
include('css/navoverride.css'); // the CSS required to kill the IE-offending div is here
}
?>
</style>[/PHP]