What is the point of CSS collapsing margins?
Posted
by Tom
on Stack Overflow
See other posts from Stack Overflow
or by Tom
Published on 2010-06-18T13:22:06Z
Indexed on
2010/06/18
13:33 UTC
Read the original article
Hit count: 334
The CSS2 box model tells us that adjoining margins collapse.
I find it quite annoying, being the source of many design bugs. I hope that by understanding the purpose of collapsing margins, I will understand when to use them and how to avoid them when they are not needed.
What is the purpose of this feature?
© Stack Overflow or respective owner