<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Weird top-margin behaviour</title>
	<link>http://www.subzane.com/2007/05/29/weird-top-margin-behaviour/</link>
	<description>Personal blog and portfolio of Andreas Norman</description>
	<pubDate>Fri, 21 Nov 2008 01:06:03 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
		<item>
		<title>By: fred</title>
		<link>http://www.subzane.com/2007/05/29/weird-top-margin-behaviour/#comment-7454</link>
		<dc:creator>fred</dc:creator>
		<pubDate>Tue, 08 Jul 2008 22:43:25 +0000</pubDate>
		<guid>http://www.subzane.com/2007/05/29/weird-top-margin-behaviour/#comment-7454</guid>
		<description>The bug is in IE and not in Opera or Firefox. :) It's the way the CSS box model works. It has to do with collapsing margins. The CSS specification states that adjoining margins (no non-empty content, padding or border areas or clearance separate them) of two or more boxes (which may be next to one another or nested) combine to form a single margin.

You can read about it here: http://www.w3.org/TR/CSS21/box.html#collapsing-margins

Or, do a Google search for "collapsing-margins" to get some good articles on the subject. :)</description>
		<content:encoded><![CDATA[<p>The bug is in IE and not in Opera or Firefox. <img src='http://www.subzane.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> It&#8217;s the way the CSS box model works. It has to do with collapsing margins. The CSS specification states that adjoining margins (no non-empty content, padding or border areas or clearance separate them) of two or more boxes (which may be next to one another or nested) combine to form a single margin.</p>
<p>You can read about it here: <a href="http://www.w3.org/TR/CSS21/box.html#collapsing-margins">http://www.w3.org/TR/CSS21/box.html#collapsing-margins</a></p>
<p>Or, do a Google search for &#8220;collapsing-margins&#8221; to get some good articles on the subject. <img src='http://www.subzane.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 92bea2f0a614</title>
		<link>http://www.subzane.com/2007/05/29/weird-top-margin-behaviour/#comment-7418</link>
		<dc:creator>92bea2f0a614</dc:creator>
		<pubDate>Sun, 11 May 2008 16:51:28 +0000</pubDate>
		<guid>http://www.subzane.com/2007/05/29/weird-top-margin-behaviour/#comment-7418</guid>
		<description>&lt;strong&gt;92bea2f0a614...&lt;/strong&gt;

92bea2f0a614bad75beb...</description>
		<content:encoded><![CDATA[<p><strong>92bea2f0a614&#8230;</strong></p>
<p>92bea2f0a614bad75beb&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pgj99</title>
		<link>http://www.subzane.com/2007/05/29/weird-top-margin-behaviour/#comment-7364</link>
		<dc:creator>pgj99</dc:creator>
		<pubDate>Sun, 09 Mar 2008 09:46:32 +0000</pubDate>
		<guid>http://www.subzane.com/2007/05/29/weird-top-margin-behaviour/#comment-7364</guid>
		<description>This one causes me loads of bother as well.  It must be a bug, it makes absolutely no sense to work this way.

You can also add padding-top:1px; to the parent and then you can use margin top OK on the child.  This is good if you are applying the CSS across many pages that may have different top-margins on the child. Or you can even add border-top:solid 1px transparent; margin-top:-1px; to the parent, although this seems a little messy somehow</description>
		<content:encoded><![CDATA[<p>This one causes me loads of bother as well.  It must be a bug, it makes absolutely no sense to work this way.</p>
<p>You can also add padding-top:1px; to the parent and then you can use margin top OK on the child.  This is good if you are applying the CSS across many pages that may have different top-margins on the child. Or you can even add border-top:solid 1px transparent; margin-top:-1px; to the parent, although this seems a little messy somehow</p>
]]></content:encoded>
	</item>
</channel>
</rss>
