Normally, you set elements to display: inline if you want them to display in the same line. However setting an element to inline means that the width attribute would be meaningless.
How do you make divs to be in the same line without making them inline?
You can use
display:inline-block.This property allows a DOM element to have all the attributes of a block element, but keeping it inline. There’s some drawbacks, but most of the time it’s good enough. Why it’s good and why it may not work for you.
EDIT: The only modern browser that has some problems with it is IE7. See Quirksmode.org