Previous Message
Next Message

margins problem

Sent by Gunlaug_Sørtun on 5 April 2006 17:05


Enrico Teotti wrote:
> Hi, I'm experiencing a margin problem on this page: 
> http://esion.textdriven.com/gardakom there are other things to set up
>  but right now I'm bothered about the margin you see between the 
> top-content center-content and bottom-content. The margins are setted
>  to zero... but only if I set up a border (to all the three divs) the
>  margins disappear. I've googled but I didn't found an answer.

Looks like standardized 'Collapsing margins'...
<http://www.w3.org/TR/CSS21/box.html#collapsing-margins>
....and IE/win gets it wrong - as usual.

You may use top and/or bottom 'padding' of 1px instead of 'border' on
those containers. If you find it necessary to correct for this padding,
then a negative 'margin' top/bottom of -1px will cover up for it.

regards
	Georg
-- 
http://www.gunlaug.no
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- 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/
Previous Message
Next Message

Message thread: