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:
“If you like to make things out of wood, or sew, or dance, or style peoples hair, or dream up stories and act them out, or play the trumpet, or jump rope, or whatever you really love to do, and you love that in front of your children, thats going to be a far more important gift than anything you could ever give them wrapped up in a box with ribbons.”
—Fred M. Rogers (20th century)
“Research shows clearly that parents who have modeled nurturant, reassuring responses to infants fears and distress by soothing words and stroking gentleness have toddlers who already can stroke a crying childs hair. Toddlers whose special adults model kindliness will even pick up a cookie dropped from a peers high chair and return it to the crying peer rather than eat it themselves!”
—Alice Sterling Honig (20th century)
“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 (17091784)