Quote:
Originally Posted by mentholmoose
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]
|
Yup. I got it working. After realizing I accidentally switched the variable arguement. Require worked just fine, though. I am not sure what the difference between the two is, I just always use require.
That all said, am still just a PHP newb.
Logic, logic, logic. Logic is the beginning of wisdom, Valeris, not the end.
|