PDA

View Full Version : need confirmation...


nits4u
09-14-2009, 01:24 PM
is this the wright way to use IF condition in css(inline style)?
body {background:#fa3; <!--[if IE]> background:#F90;<![end if]--> color:#012370; font-size:.9em;}

thank you 8)

coloeagle
09-14-2009, 11:00 PM
Personally I've not used conditional statements inline.. So can't say for sure.
Looking at it I would think it should be;
body {background:#fa3; color:#012370; font-size:.9em;}
[if IE]body {background:#F90;}[end if]

Corrosive
09-15-2009, 06:01 AM
Why are you using inline styles?