parent-element does not scale with styled links

Example @JsFiddleWhy does the grey box wrapping the blue boxes not scale with them? I have tried many different combinations of attributes for the elements, but I cannot get it to work properly.The effect is not bad actually, but not what I want. An explanation of why this happens would be helpful. Thanks in advance! :)PS: I am on Mozilla Firefox 15.0.1
6wJwd.png
 
Back
Top