Bruce Gilbert schrieb: > A couple of CSS hacks I see used quite frequently are setting a : > > width:45em and also a w\idth: Is the normal way to do width for IE and > the other one for Gecko? I'm a little confused on that. Also, what > does html>body #wrapper (or anything similar) do? and what browser(s) > does that target? >
In CSS2, a backslash (\) cancels the meaning of special CSS characters. Any character (except a hexadecimal digit) can be escaped with a backslash to remove its special meaning. The backslash will not interpreted correctly by older browsers, eg. MSIE/PC lower 6, Opera lower 7 etc. Therefore it is used as a browser filter. http://centricle.com/ref/css/filters/ Please, follow the links on the page's bottom. What is the meaning of character escaping in CSS2? http://www.w3.org/TR/REC-CSS2/syndata.html#q4 http://www.w3.org/TR/REC-CSS2/grammar.html#q2 The construct: html>body #wrapper will not interpreted correctly by MSIE/PC in any version. Therefore it is used as a browser filter. You should avoid to use this filter this way, if possible, unless you know exactly what you are doing. A better way is to style your document for compliant browsers and than to use "* html #wrapper" for MSIE (Mac and PC). The construct: /* \*/ * html #wrapper /* */ is interpreted by MSIE/PC only, and the construct: /* \*//*/ * html #wrapper /* */ is interpreted by MSIE/Mac only, For further information look at: http://www.l-c-n.com/IE5tests/hiding/ regards, Uwe Kaiser ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
