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

CSS Mouse Cursors and Custom Cursors

Block right click or disable keyboard on web pages

What is PAD file? "Submit your software with PAD file to Download.com"