CSS Filter - Star Plus Hack

Star Plus Hack

Although Internet Explorer 7 no longer recognizes the classic star HTML hack, it has introduced a similar hack using selectors new to IE7:

*:first-child+html p { font-size: 5em; }

Or...

*+html p { font-size: 5em; }

This code will be applied in Internet Explorer 7, but not in any other browser. Note that this hack only works in IE7 standards mode; it does not work in quirks mode. This hack is also supported by Internet Explorer 8's compatibility view (IE7 standards mode), but not in IE8 standards mode. Like the star HTML hack, this uses valid CSS.

Read more about this topic:  CSS Filter

Famous quotes containing the words star and/or hack:

    Between us two it’s not a star at all.
    It’s a new patented electric light,
    Put up on trial by that Jerseyite
    So much is being now expected of....
    Robert Frost (1874–1963)

    I was gonna call it “I Love You, Samantha” but some old hack got there before me.
    Blake Edwards (b. 1922)