We Recommend

CSS: The Definitive Guide CSS: The Definitive Guide
Provides you with a comprehensive guide to CSS implementation, along with a thorough review of all aspects of CSS 2.1. Updated to cover Internet Explorer 7, Microsoft's vastly improved browser, this new edition includes content on positioning, text wrapping (nowrap), lists and generated content, table layout, user interface, paged media, and more.


Posted By

valcartei on 07/20/07


Tagged

ie layout ie7


Versions (?)


Who likes this?

1 person has marked this snippet as a favorite

SpinZ


use specific styles for IE


Published in: CSS 


URL: http://msdn2.microsoft.com/en-us/library/bb250496.aspx

To use css which will only be applied if the browser is IE.


  1. Create an new css document and link to it from your html page using the following filter:
  2.  
  3. <!--[if IE]>
  4. <link rel="stylesheet" type="text/css" href="iestyles.css" />
  5. <![endif]-->
  6.  
  7. Where iestyles.css is your css document containing all the rules which will be only applied if IE browser is detected.

Report this snippet 

You need to login to post a comment.