Forum Moderators: not2easy
The second width containing the escape backslash ("w\idth") delivers the second value to IE6 in Standards mode. You'll find that that second width always matches the width set in the original selector for compliant browsers.
Here's a brief explanation: in Standards mode, IE6 functions, in SOME respects, like well-behaved browsers such as Firefox and Opera. One such way is in it's proper implementation of the box model. The star hack is used to fix the broken box model found in IE5.x, but since it also delivers those settings to IE6, you need to give the compliant setting back to IE6 or it will bungle the layout. IE6 is able to read past the backslash in the second width, but IE5.x is not. So 5.x ignores the second width while IE6 implements it.
#content {
width: 741px; /* width to all browsers */
}
* html #content {
width: 749px; /* width to all IE's only */
w\idth: 741px; /* correct width back to IE5/Mac and IE6 */
}
.. you would need to put the * html #content rule later in the cascade or all IE's will be using the width in the #content rule negating the hacks purpose and cEM's great explanation ;)
Suzy