Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter hunteramor

    (@hunteramor)

    I figured out a workaround – I’m using php to detect which browser someone is using. If it’s IE, they’ll see the #headerimg that works for IE and vice versa if they’re using another browser:

    <?php
    function inAgent($agent) {
    global $HTTP_USER_AGENT;
    $notAgent = strpos($HTTP_USER_AGENT,$agent) === false;
    return !$notAgent; }
    if ( inAgent(‘MSIE’) ) { $browser = ‘ie’; } ?>
    <?php if ($browser == ‘ie’): ?>
    #headerimg {margin: 0px 1px 0px; height: 200px; width: 760px; }
    <?php else: ?>
    #headerimg {margin: 0px 0px 0px; height: 200px; width: 760px; }
    <?php endif; ?>

    hope this points someone else in the right direction if they have a similar problem.

    Thread Starter hunteramor

    (@hunteramor)

    bueller?

Viewing 2 replies - 1 through 2 (of 2 total)