You need to apply overflow:hidden to your ul so that your floats are cleaned and contained in ul .
Currently, your ul reset, as it contains only floating elements.
If you need to support IE6 (?!), You will need to make sure that your container (i.e. ul ) hasLayout for the overflow trick. You can do this by applying width.
source share