01 August 2011

IE - HTML or CSS rules specific to Internet Explorer

If you want to put some HTML or CSS rules in a page specific to Internet Explorer — I never needed this for any other browser — you can put the following in the page:
<!--[if gte IE 7]>
  <style type="text/css">
    #SearchButton{ height:23px; }
  </style>
<![endif]-->
This CSS rule would be applied only by IE7 and later.

No comments:

Post a Comment