Child Selector Hack
Internet Explorer 6 and earlier do not support the "child selector" (>
), allowing rules to be specified for all other browsers. For example, this rule will turn paragraph text blue in Firefox, but not in IE before version 7.
Although IE7 added support for the child selector, a variation of the hack has been discovered which allows Internet Explorer 7 to be excluded as well. When an empty comment occurs immediately after the child selector, IE7 will drop the rule that follows, as will earlier versions of IE.
html >/**/ body p { color: blue; }Read more about this topic: CSS Filter
Famous quotes containing the words child and/or hack:
“The child benefits more from being valued than evaluated.”
—Don Dinkmeyer (20th century)
“I was gonna call it I Love You, Samantha but some old hack got there before me.”
—Blake Edwards (b. 1922)