Stephan Wehner wrote:
> On 12/8/06, Gunlaug Sørtun <[EMAIL PROTECTED]> wrote:
> 
>> Stephan Wehner wrote:
>>> http://test.spacetimebrowser.org/test.html
>>> 
>>> How can I make IE lay out the page the same way that FF does?
>> 
>> Try adding... .content {padding: 1px 0; margin: -1px 0; position:
>> relative;}

> Well that works nicely.
> 
> What does this do?

Well, to be honest about it... I'm not sure :-)

Since either a padding or a border on .content will make IE behave, I
would have guessed it had something to do with IE's somewhat strange
handling of 'collapsing margins'.

The negative margin is inserted as an adjustment for the padding.

'position: relative' is needed since IE got the stacking wrong when the
other styles was put in place - hiding the main text.

Someone have surely documented this multi-bug case somewhere, but I
can't remember having seen such a documentation.

regards
        Georg
-- 
http://www.gunlaug.no
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to