Dave Cline wrote:
> XPOST to MOZILLA - DOM
> 
> Tribe,
> Wondering why this is so and how it can be rectified.
> Given the crude code and graphic below:
>  
> <div style="position:absolute;background-color:red;border:10px solid
> blue;width:100;height:30;top:100;left:100;margin:0;padding:0;overflow:auto"></div>
>  
> IE 5+
>  xxxxxxxxxx
>  x        x
>  xxxxxxxxxx
>  
> NS 6.2
> xxxxxxxxxxxx
> x          x
> x          x
> x          x
> xxxxxxxxxxxx
>  
> A specified HTML element given a width, height and borderwidth - IE
> renders the element as if the entire visual control were absolutely
> contained within the given height width constraints - regardless of
> the border width.
>  
> Where as Mozilla - disregards the actual visual height and width of
> the object and instead applies the height and width only to the client
> area of the HTML element.
>  
> Obviously this entirely different behaviour will cause havoc with any
> developer trying to implement complex positional cross browser DHTML.
>  
> Am I really going to have to take into account that with MOZ a DIV
> width/height is actually DIV width - borderwidth/height -
> borderheight?

This is an known bug in IE5. Fixed in IE6 strict mode.

http://www.tantek.com/CSS/Examples/boxmodelhack.html

Tim.


Reply via email to