Previous Message
Next Message

Re: [css-d] SBMH Simplified Box Model Hack

Sent by Dramatic Design on 7 September 2002 22:10


On Fri, 06 Sep 2002 13:59:29 -0400, Kevin Smith wrote:

>On 09.06.2002 12:11 PM, Tuttle Grey wrote:
>
>> Can anyone summarize the SBMH and explain where it works and where it
>> doesn't?
>
>I've not been paying close attention to this thread, so this URL may have
>been offered already, but Andrew's explanation from last year is a good
>summary:
>
><http://and.doxdesk.com/personal/posts/css/20020212-bmh.html>
>
>The only thing I'd add would be to clarify that Opera 5 will ignore any rule
>that contains an escape - the entire rule, not the individual
>declaration(s).

Which could be overcome by using a child selector in a following rule.
Which leaves us with two methods of using three definitions to work in
(nearly?) all browsers, but still no solution using only two definitions:

div.content {  width: 300px; } /* for browsers with no escapes at all */
div.content { \width: 400px; } /* for IE5/Win */
div.content { w\idth: 300px; } /* for good browsers */

or 
div.content { \width: 400px; } /* for IE5/Win */
div.content { w\idth: 300px; } /* for good browsers */
parent>div.content {  width: 300px; } /* for browsers with no escapes at all */



[ dramatic design --- for web | print | theatre ]
[ po box 3263 | christchurch 8015 | new zealand ]
[ tel +64-3-360-2200 | cel +64-27-221-5053      ]
[ fax +64-3-360-2201 | e [EMAIL-REMOVED] ]
[ web http://www.dramatic.co.nz                 ]
Previous Message
Next Message

Message thread: