CSS Filter - Star Hack

Star Hack

Versions 7 and below of Internet Explorer recognize properties which are preceded by non-alphanumeric characters except an underscore or a hyphen (after discarding the prefix). All other browsers ignore such properties as invalid. Therefore, a property that is preceded by an non-alphanumeric character other than an underscore or a hyphen, such as an asterisk, is applied exclusively in Internet Explorer 7 and below.

#elem { width: ; *width: ; }

This hack uses invalid CSS and there are valid CSS directives to accomplish a similar result. On the other hand, this hack doesn't change the specificity of a selector making maintenance and extension of a CSS file easier.

Read more about this topic:  CSS Filter

Famous quotes containing the words star and/or hack:

    Exhaust them, wrestle with them, let them not go until their blessing be won, and, after a short season, the dismay will be overpast, the excess of influence withdrawn, and they will be no longer an alarming meteor, but one more brighter star shining serenely in your heaven, and blending its light with all your day.
    Ralph Waldo Emerson (1803–1882)

    Painting consumes labour not disproportionate to its effect; but a fellow will hack half a year at a block of marble to make something in stone that hardly resembles a man. The value of statuary is owing to its difficulty. You would not value the finest head cut upon a carrot.
    Samuel Johnson (1709–1784)