Form With Inline Input Boexes I am trying to create a form that will have the input boxes inline and next to one another. I have created the following module but nothing seems to help. Can anyone help to solve this issue? Also the form doesn't seem to be reacting to changes in the size parameters.

function name_search_block_info() {
    $blocks['name_search'] = array(
        'info' =&gt; t('Name Search Block'),
    );
    return $blocks;
}

function name_search_block_view($delta='')
{
     $block = array();
     switch($delta)
     {
        case 'name_search':
          $block['subject'] = t("Search Form"); 
          $block['content'] = "&lt;div class=\"searchform\"&gt;".drupal_render(drupal_get_form('name_search_custom_search_form'))."&lt;/div&gt;";
          break;
     }
     return $block;
 }

function name_search_custom_search_form($form_state) {
  $form = array();

  $form['keyword'] = array(
    '#type' =&gt; 'textfield',
    '#required' =&gt; TRUE,
    '#attributes' =&gt;array('placeholder' =&gt; t('Search')),
    '#maxlength' =&gt; 64,
    '#size' =&gt; 32,
    '#required' =&gt; TRUE,
    '#id' =&gt; 'searchfield',
    '#prefix' =&gt; '&lt;div class="container-inline"&gt;',
    '#suffix' =&gt; '&lt;/div&gt;',    
  );
  $form['location'] = array(
    '#type' =&gt; 'textfield',
    '#required' =&gt; TRUE,
    '#attributes' =&gt;array('placeholder' =&gt; t('Zip')),
    '#maxlength' =&gt; 5,
    '#size' =&gt; 7,
    '#required' =&gt; TRUE,
    '#id' =&gt; 'locationfield',
    '#prefix' =&gt; '&lt;div class="container-inline"&gt;',
    '#suffix' =&gt; '&lt;/div&gt;',
  );

  $form['#submit'] = array('name_search_custom_search_form_submit');

  return $form;
}

function name_search_custom_search_form_submit($form, &amp;$form_state) {
  $redirect_url = 'search/node/';
  $redirect_url .= 'type:' . $form_state['values']['type'];
  $redirect_url .= ' category:' . $form_state['values']['category'];
  $redirect_url .= ' %' . $form_state['values']['keyword'] . '%';

  $form_state['redirect'] = $redirect_url;
}
No need to add prefix/suffix markup, just add a container or fieldset and use CSS to float them inside.