Usually when you want a horizontal list, you need to use float in the CSS code to make it work, with all its drawbacks. However, there is an alternative with display: inline-block.

More at: http://feedproxy.google.com/~r/cssglobe/~3/RNcs1rp_RN0/css-display-inlineblock-why-it-rocks-and-why-it