<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1044715" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1044715</link>
    <description></description>
    <language>en</language>
          <item>
    <title>This is the correct</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/css-parent-child-divs-and-margins#comment-1244366</link>
    <description> &lt;p&gt;This is the correct behavior[1]. May not work in older IE if you have a &quot;hasLayout&quot; trigger[2] on the inner DIV though.&lt;/p&gt;
&lt;p&gt;For normal browsers, adding a &quot;block formatting context&quot;[3] to the container DIV should fix it. Try &quot;overflow: hidden;&quot; or &quot;overflow: auto;&quot;.&lt;/p&gt;
&lt;p&gt;[1] &lt;a href=&quot;http://www.w3.org/TR/CSS21/box.html#collapsing-margins&quot; title=&quot;http://www.w3.org/TR/CSS21/box.html#collapsing-margins&quot;&gt;http://www.w3.org/TR/CSS21/box.html#collapsing-margins&lt;/a&gt;&lt;br /&gt;
[2] &lt;a href=&quot;http://www.satzansatz.de/cssd/onhavinglayout.html&quot; title=&quot;http://www.satzansatz.de/cssd/onhavinglayout.html&quot;&gt;http://www.satzansatz.de/cssd/onhavinglayout.html&lt;/a&gt;&lt;br /&gt;
[3] &lt;a href=&quot;http://www.w3.org/TR/CSS21/visuren.html#block-formatting&quot; title=&quot;http://www.w3.org/TR/CSS21/visuren.html#block-formatting&quot;&gt;http://www.w3.org/TR/CSS21/visuren.html#block-formatting&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Thu, 20 Aug 2009 02:31:07 +0000</pubDate>
 <dc:creator>webwiz</dc:creator>
 <guid isPermaLink="false">comment 1244366 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
