<head>
if(preg_match('/MSIE 7.0/i',$_SERVER['HTTP_USER_AGENT']))
{
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7,chrome=1"> // Codes for just ie7
} else {
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8,chrome=1"> // other versions of ie and other browsers
}
Didn’t seem to work, it just added the above text to the header bar. I realize I forgot to mention this is in the head content.