DIV tags not being properly nested.

Posted by chustar on Stack Overflow See other posts from Stack Overflow or by chustar
Published on 2010-05-22T00:37:56Z Indexed on 2010/05/22 0:40 UTC
Read the original article Hit count: 265

Filed under:
|
|
|
|

I have created some <div> tags and am setting it to contain two <div> tags that are floated to both sides of the <div>.
I noticed when I tried to set a background color that the containing <div> was not properly wrapping around the <div>s that its supposed to contain. I would like to know why this happens.

I have seen a similar question here http://stackoverflow.com/questions/611220/why-are-these-div-tags-not-nesting-properly but no one has explained why this happens in any of the answers.

© Stack Overflow or respective owner

Related posts about html

Related posts about css