Form, multicolumn fields

hi,
I searched (maybe poorly) but I can’t find anywhere. I have a contact form and everything works great, but I would like the form fields to be next to each other instead of on a new line. Please sample code or a guide where to look for a solution.
thanks a lot,