Real World Style

css layouts, tips, tricks, and techniques

Giraffe peeking over the image...

« RWS Blog | Main | CSS Crib sheet »

November 25, 2003

No Margin for Error

Andy Budd analyzes and explains how collapsing margins can affect your CSS layouts. Important information to keep in mind when designing your site, especially when using margins to control vertical whitespace. This also affects floated elements and clearing floated elements. I ran into this problem when working on the latest version of this site. I had to add a border to various elements to get them to behave the way I wanted them to. And now I know why.

Might want to bookmark this one...

Posted by Mark on November 25, 2003 04:03 PM