Conditional comments for IE
HTML
Show content if in IE
<!--[if IE]> Show in IE <![endif]-->
Show content if NOT in IE
<!--[if !IE]>--> NOT show in IE <!--<![endif]-->
PHP
code to detect IE
function not_use_ie() { $user_agent = $_SERVER['HTTP_USER_AGENT']; $ub = True; if (preg_match('/MSIE/i', $user_agent)) { $ub = False; } return $ub; }
Loading