HTML:
CSS:
div { background-color:green; border-top:1px solid white; }
p {
It's because the Yup, on the update, exactly. The box expands vertically, but not horizonally. Also, padding puts space on the inside of the box, so the p can't push right up against the bounds. Read up on the CSS box model, for example here:
http://www.w3schools.com/css/css_boxmodel.asp
and here: http://www.w3.org/TR/CSS21/box.html is right against the bottom of the enclosing . Any explicit height > 50px will show the bottom.