DIV tags not being properly nested.
- by chustar
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.