How do I render multiple form fields select boxes in a single row I am trying to render three dropdown boxes to be on the same line using a tpl file. Here is the snippit of code I am trying to work with:

$form_stuff = array();
$form_stuff[]=$form['field_list_1'];
$form_stuff[]=$form['field_list_2']; 
$form_stuff[]=$form['field_list_3'];
print drupal_render($form_stuff);


I have also tried:

print drupal_render($form['field_list_1'] . $form['field_list_2'] . $form['field_list_3']);

Both will render each field element on a separate line.

This gets me a little closer but the dropdown renders on top of the label. It there a way to insert a &lt;br&gt; after the label renders or some sort of style=display:block?

print '&lt;table&gt;&lt;tr&gt;';
print '&lt;td&gt;' . drupal_render($form['field_list_1']) . '&lt;/td&gt;';
print '&lt;td&gt;' . drupal_render($form['field_list_2']) . '&lt;/td&gt;';
print '&lt;td&gt;' . drupal_render($form['field_list_3']) . '&lt;/td&gt;';
print '&lt;/tr&gt;&lt;/table&gt;';


Thanks
In this, there is nothing to do with the coding part. 
When we add a field it adds lot of wrapper div tags around it. And div tags has the by default property to take the next line in the page.

Just write some css for these divs.

&lt;style&gt;
    div.class1(display:inline-block;width:150px;float:left) 
    div.class2(display:inline-block;width:150px;float:left) 
    div.class3(display:inline-block;width:150px;float:left) 
&lt;/style&gt;


Hope it will work for you.