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:
“Awareness of having better things to do with their lives is the secret to immunizing our children against false valueswhether presented on television or in real life. The child who finds fulfillment in music or reading or cooking or swimming or writing or drawing is not as easily convinced that he needs recognition or power or some high to feel worthwhile.”
—Polly Berrien Berends (20th century)
“I was gonna call it I Love You, Samantha but some old hack got there before me.”
—Blake Edwards (b. 1922)