Then if you want the labels and respective inputs on the same line you need to wrap the pairs in container div's and then stick the input in another div, and play with the css a little. see a fiddle here of the rough idea: http://jsfiddle.net/v7YTT/90/