CSS Conditional Statements or Comments

Conditional comments
Implemented by IE to fix their retarded browsers, conditional comments can help you target different versions of IE.

< ! --[if IE 6] >
Any instructions in this comment will be parsed by IE 6.
< ! [endif] - - >

< ! - - [if IE 7] >
Any instructions in this comment will be parsed by IE 7.


<!--[if lte IE 7]>
Any instructions in browsers less than or equal to IE7 will
parse these comments.
< ! [endif] - - >

Example of using conditional comments:
< ! - - [if IE 7] >
< link href="styles/ie7styles.css" rel="stylesheet" type="text/css" / >
< ! [endif] - - >

reference link : http://theinfiniteloopblog.com/tag/cross-browser-css/

Comments

Popular posts from this blog

Leap Year Calculator

PDF form validation using javascript

CSS Mouse Cursors and Custom Cursors