Avoid using floats when you can - change this to display:inline-block;