jaffathecake, If you want an element to fully contain margins (and floats, remember them?), but you don't want the contents to be clipped,
display: flow-root
is what you're looking for. https://jsbin.com/hafawud/edit?html,css,output
jaffathecake, If you want an element to fully contain margins (and floats, remember them?), but you don't want the contents to be clipped,
display: flow-root
is what you're looking for. https://jsbin.com/hafawud/edit?html,css,output