Possible Duplicate:
why is my content showing outside the div?
I have a problem where the background style for a div doesn’t cover everything nested inside the div.
Here is a jsfiddle to show you exactly what I’m talking about
How can I make the grey background style from the div ddg-corner-statements apply to everything inside the div without setting an absolute height?
This is a common issue when working with floats. There are a couple of common solutions:
Add a div after the floats with
clear: both. Example.Add the two floats into a container with the CSS attribute
overflow: auto. Example.Make the parent element a float. Example.
Use the :after CSS pseudo element. Example.
Adding a set height to the parent element. Example.
Personally, I use option 2 for simplicity and semantics’ sake
See an updated version of your code here.