Previous Message
Next Message

Re: [css-d] Simplified Box Model Hack

Sent by Philippe Wittenbergh on 6 September 2002 07:07


On Friday, September 6, 2002, at 02:23 PM, Edwardson Tan wrote:

>>> width: 400px       /* for IE/win 5.x */
>>> width: /**/300px;  /* for others */
>> Opera 5 and Mozilla 1.0 both ignore the entire rule & display the 
>> <div> at
>> 100% width. (Only tested on Mac OS 9.0.4)
>
> Since placing /**/ before values causes problems on the Mac I've used 
> it in conjuction with another bug in IE/win to prevent Mac browsers 
> from getting the wrong values. I've uploaded a test page with 
> explanations. Could you check how it renders on your Mac? Many thanks.
>
> http://www.info.com.ph/~etan/temp/boxmodel.html

IE5 Mac does read and apply the first rule. I tested this by adding 
{color:#c00} to * html div#box. But (!) it displays the document the 
same as Moz 1.1, except for the (now) red text.

<http://www.l-c-n.com/lab/hiderule.html>

HTH,

Philippe

== | == | == | == | == | == | == | == | == | == | == | ==

Philippe Wittenbergh

code | design | web projects : < http://www.l-c-n.com/>
online image gallery : <http://www.l-c-n.com/phiw/>
Previous Message
Next Message

Message thread:

Possibly related: