Previous Message
Next Message

expanding divs

Sent by Gunlaug_Sørtun on 28 March 2006 21:09

jeremy wrote:
> I am trying to understand how a DIV expands based on the content 
> inside of it. 

'Collapsing margins'[1] is going on, and the result can be quite
confusing. It *is* standard behavior, so you'll just have to "work it"
into your mind.

Solution in your test-layout, correct to...

..orClause {padding: 1px 0;} the paragraphs top and bottom margins will then be contained -
making <div class="orClause"> expand, instead of ending up on the
outside of <div class="orClause"> and push the other divs away.


css-discuss [EMAIL-REMOVED]]
IE7b2 testing hub --
List wiki/FAQ --
Supported by --
Previous Message
Next Message

Message thread: