meyerweb.com

Skip to: site navigation/presentation
Skip to: Thoughts From Eric

Uncollapsing Margins

At long last, I’ve published a new article at Complex Spiral: “Uncollapsing Margins“.  In it, I explore how margin collapsing can lead to weird behaviors, why these behaviors arise, and ways to work around it when you want a different result.  If you’ve ever tried to figure out why a heading’s top margin seems to disappear when it’s the first thing in a div, this article will be of interest.

Oh, and if you were having trouble reaching meyerweb in the last 24 hours, we done got Slashdotted.  They posted an article about S5, and the ensuing geek stampede crushed my bandwidth like it was an overripe grape.  An overripe grape run over by a steamroller.  Once the article fell off the Slashdot home page, things got back to normal.

Two Responses

    • #1
    • Trackback
    • Thu 4 Nov 2004
    • 2314
    Received from sparklit

    Where the in Hell did that space come from?
    A few months ago I spent a long weekend cursing margins and padding and css layout and computers and also Google (*gasp*). The reason I was practicing my invective was about 12 pixels of innocent space that decided to take up residence between my heade…

    • #2
    • Trackback
    • Sat 11 Feb 2006
    • 1548
    Received from Alex Jones

    Uncollapsing Margins

    Eric Meyer has published another great resource for the Web development community: Uncollapsing Margins discusses “how margin collapsing can lead to weird behaviors, why these behaviors arise, and ways to work around it when you want a different …


November 2004
SMTWTFS
October December
 123456
78910111213
14151617181920
21222324252627
282930  

Sidestep

Feeds

Extras