It's hard to say without actually seeing your page. I would suggest starting by making all of the inputs inline with each other. Make a small margin and contain them in an appropriately sized div. They should word wrap giving them the effect you want.
If this doesn't work for you post your...