IE-b0rker returns

Now complete with large annoying red border. Here's a screenshot of Opera pretending to be IE.

I'm using this code to detect IE browsers:

<?php if(strstr($_SERVER['HTTP_USER_AGENT'],"MSIE")) { ?>

If anyone knows a better way, I'd love to hear it.

Tags: ,

3 Responses to “IE-b0rker returns”

  1. Quoth Reinmar:

    If you want the red border to be displayed only in IE use conditional comments (http://www.quirksmode.org/css/condcom.html).
    For example in the stylesheet for all user agents there may be line:

    #redframe {display:none}

    And in the stylesheet included like this:

    
    

    You may put line:

    #redframe {display:block}
  2. Quoth Reinmar:

    … Your wordpress delete my code ;p
    It must look like this:
    <!--[if IE 6]>
    <link rel=”stylesheet” src=”ss_for_ie_only.css” />
    <![endif]-->

    Maybe now it will work ;)

  3. Quoth Brian:

    IE-specific code makes me cry. But that looks useful if I ever want to mangle a page in IE again, thanks. :)

Leave a Reply

You can use these tags in comments (Note: HTML is automatically escaped inside <pre> tags, nowhere else, so if you post source code, put it in <pre>):

<pre lang="some_programming_language"> 
<em>
<strong>
<a href="url">

NOTE: Comments are automatically spam-filtered. If your comment fails to appear, it was likely munched by the filter. Try not to link-spam or post anything that looks like it was typed by a robot.