Hi Mike,

Basically, the margin top of a child element can (theoretically should) poke
out the top of the parent element if no border or padding are applied to the
parent. To stop this occurring, top border or padding can be applied to the
parent and the child's margin is 'trapped' within the parent - not able to
poke out the top of the parent element.

Make sense?

It is explained in more detail at the top of the same page (with demo's):
http://www.communitymx.com/content/article.cfm?cid=CB7B3

Russ




> What does it mean to "trap the margin"?  It's unclear to me at least whether
> it's a good thing or not to 'trap the margin' and what it means when you do.
> 
> Can anyone explain for me please?

*****************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
***************************************************** 

Reply via email to