if/else conditions in CSS?

here is list of operators are available

lt      = less than operator
lte    =  less than or equal to
gt    =   greater than
gte    =  greater than or equal to
!     =  the NOT operator
()     =  subexpression operator
&      =  the AND operator
|      =  the OR operator
true    = evaluates to true
false =   evaluates to false
you can use this like this

<!--[if lt IE 7 ]>
  <p>Only less than IE 7 will see this</p>
<![endif]-->


<!--[if gte IE 6 ]>
 <p>Only  IE 6 and greater will see this</p>
<![endif]--> 

No comments:

Post a Comment