CSS Filter - Box Model Hack

Box Model Hack

Called the "box model hack" because the bug it is most often used to work around is the Internet Explorer box model bug, this hack provides a different set of properties to Internet Explorer and other browsers. As of version 6, IE has corrected the box model bug in documents which include certain Document Type Declarations (required by the HTML specifications) in certain ways.

#elem { width: ; voice-family: "\"}\""; voice-family: inherit; width: ; } html>body #elem { width: ; }

The first voice-family statement is set to the string "}", but an IE parser bug will interpret it as a string with a single backslash followed by a closing brace for the end of the rule. voice-family is chosen because it will not affect rendering on a screen style sheet. The second rule uses the html>body hack for browsers such as Opera 5 that have the parsing bug but do not have the box model bug (and, additionally, which support the child selector).

Read more about this topic:  CSS Filter

Famous quotes containing the words box, model and/or hack:

    However low and poor the taking Snuff argues a Man to be in his own Stock of Thought, or Means to employ his Brains and his Fingers, yet there is a poorer Creature in the World than He, and this is a Borrower of Snuff; a Fellow that keeps no Box of his own, but is always asking others for a Pinch.
    Richard Steele (1672–1729)

    If the man who paints only the tree, or flower, or other surface he sees before him were an artist, the king of artists would be the photographer. It is for the artist to do something beyond this: in portrait painting to put on canvas something more than the face the model wears for that one day; to paint the man, in short, as well as his features.
    James Mcneill Whistler (1834–1903)

    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)