On Mar 11, 2008, at 8:27 PM, Niels Matthijs wrote: > This has to do with collapsing margins as giving the parent element > a border also helps. Sadly, these are crappy solutions, I just don’t > want my background clipped there. Any way to avoid/fix this without > touching the method of margins/paddings I’m using ?
Top padding on the parent element ? (border or padding are not 'crappy' solutions to the problem of collapsing margins in my book.) Or: establishing a new block-formatting context (css2.1 : 9.4.1 -[1]), such as overflow other than visible, display table-cell, float, display:inline-block, ... Establishing that new block formatting context on the parent element will always contain the margins of the descendant. [1] http://www.w3.org/TR/CSS21/visuren.html#block-formatting Philippe --- Philippe Wittenbergh http://l-c-n.com/ ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
