Faves for this Web page
- mohit - Apr 03 2007 | margins, css, development, html
An explanation of why margins are collapsed in css...
Quoted: Why is this? Because it's what authors would tend to expect. If you declare top and bottom margins of 1em for paragraphs, odds are that you want one em of space between successive paragraphs. If you're feeling dubious about that assertion, consider this:
- derek - Jan 30 2006 | css, margin collapsing
Good article on margin collapsing in CSS.
Quoted: Like many basic concepts, margin collapsing can lead to unexpected and sometimes counterintuitive results.
- derek2 - Jan 30 2006 | imported_from_blue_dot, css, margin_collapsing, imported:del.icio.us
Good article on margin collapsing in CSS.Quoted: Like many basic concepts, margin collapsing can lead to unexpected and sometimes counterintuitive results.
- aaronpowell - May 06 2006 | css
Add a Fave for this Web page
- What happens when I press Publish?
- Your Fave for this Web page gets shared with the Faves community. You can access it at any time by selecting "My Faves" from the menu above.
- Why do you ask for my email address?
- We use your email address to create an account, so you can easily find your Fave again at a later time.
Related Content from Around Faves
css
-
1 FaverViewed: 17 TimesQuoted: Tooltips provide another method of website branding. Why throw a vanilla tooltip to the user when you can brand your website? MooTools 1.2 provides a Tips plugin that allows for easy-to-customize tooltips. Let me show you how to create a sweet, branded tooltip
- mippe - Jun 12 20081 FaverViewed: 11 Times
- Claire16 - Aug 23 200610 FaversViewed: 52 Times
web design
-
1 FaverViewed: 5 TimesQuoted: As a designer, it's not always possible to take the time and generate your own textures for all of your graphics. Thankfully, there are tons of convenient
- fortyjames - Jul 27 200519 FaversViewed: 43 Times
- ketchup - 25 days ago2 FaversViewed: 3 Times

This annoyed me when I first got burned by it, but now I appreciate and think it's right. It's easy to work around it when you know it exists, but would be rather annoying to make it work if you needed it and it didn't exist. It's not so bad with pseudo classes, but IE makes that not work very often.
seems like it only happens on vertical (and not horizontal) margins.
Yeah, it's designed for block elements.