Sunday, March 29, 2009

CSS hacks (IE8 standard mode)

Currently tested:

IE 5.01, 5.5, 6, 7, 8 PC (IE8 standard mode)

Firefox 1.07, 1.5, 2 PC

Opera 8, 8.5, 9 PC

Click here to see demo.

Color should be as follows :

class="testclass": IE5-5.5: red (IE5: black), IE6: blue, IE7: pink, Firefox, Opera, Safari(?), IE8: green


.testclass {
color: red; /* IE 5-5.5 */
c\olor: blue; /* IE 6 */
}
*+html>body .testclass {
color: black; /* IE5 only if different CSS than for IE5.5. needed */
}
*+html>body .testclass[class] {
color: pink; /* IE 7 */
}
html>body .testclass {
color: green; /* Firefox, Opera, Safari, IE8 */
}

if you found any error in this, please give feedback and suggestion. Thanks...

Labels: ,



0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home