clubmate.fi

A good[ish] website

Web development blog, loads of UI and JavaScript topics

If not IE, conditional HTML comment

Filed under: Markup— Tagged with: conditional, IE

There’s a conditional command to check if a browser is not IE.

You can use magic HTML comment to do that:

<!--[if !(IE)]><!-->
<div class="foo">Content that is not shown to IE users.</div>
<!--<![endif]-->

Comments would go here, but the commenting system isn’t ready yet, sorry.

  • © 2022 Antti Hiljá
  • About
  • All rights reserved yadda yadda.
  • I can put just about anything here, no one reads the footer anyways.
  • I love u!