title: drupal 6 form table spacing issues
body: <p><img src="https://i.stack.imgur.com/fG3Q3.jpg" alt="table output with code shown here"></p>
  
  <p>I wrote a form module where I wanted to make tables of textfields, but their spacing is so far apart from one another as shown in the picture. How can I make them stay closer together? For some reason the rows are spaced very far from one another, as are the columns. I'd like them to be right next to one another as with most HTML tables that are built for websites. </p>
  
  <p>Secondly, is there a way to incorporate forms into theme_table() provided by drupal for regular text content?? The format is really nice for those. 
  --> <a href="http://coffeeshopped.com/2010/09/drupal-drag-and-drop-tables-in-custom-modules" rel="nofollow noreferrer">http://coffeeshopped.com/2010/09/drupal-drag-and-drop-tables-in-custom-modules</a>
  I should be able to stuff $form into the $header and $row arrays for theme_table(). 
  I posted an alternative to this, which is also a question here: <a href="https://stackoverflow.com/questions/15105655/drupal-6-theme-table-for-form-elements-using-theme-hook">drupal 6 form module not calling hook_theme</a></p>
  
  <pre><code>  $form['a1'] = array(
      '#type' =&gt; 'textfield',
      '#title' =&gt; t('Date'),
      '#prefix'=&gt;'&lt;table&gt;&lt;tr&gt;&lt;td&gt;',
      '#suffix'=&gt;'&lt;/td&gt;',
    );
      $form['a2'] = array(
      '#type' =&gt; 'textfield',
      '#title' =&gt; t('Amount Requested'),
      '#prefix'=&gt;'&lt;td&gt;',
      '#suffix'=&gt;'&lt;/td&gt;',
    );
       $form['a3'] = array(
      '#type' =&gt; 'textfield',
      '#title' =&gt; t('Amount Recieved'),
      '#prefix'=&gt;'&lt;td&gt;',
      '#suffix'=&gt;'&lt;/td&gt;&lt;/tr&gt;',
    );
  
    $form['b1'] = array(
      '#type' =&gt; 'textfield',
      '#prefix'=&gt;'&lt;tr&gt;&lt;td&gt;',
      '#suffix'=&gt;'&lt;/td&gt;',
    );
      $form['b2'] = array(
      '#type' =&gt; 'textfield',
      '#prefix'=&gt;'&lt;td&gt;',
      '#suffix'=&gt;'&lt;/td&gt;',
    );
        $form['b3'] = array(
      '#type' =&gt; 'textfield',
      '#prefix'=&gt;'&lt;td&gt;',
      '#suffix'=&gt;'&lt;/td&gt;&lt;/tr&gt;',
    );
    $form['c1'] = array(
      '#type' =&gt; 'textfield',
      '#prefix'=&gt;'&lt;tr&gt;&lt;td&gt;',
      '#suffix'=&gt;'&lt;/td&gt;',
    );
      $form['c2'] = array(
      '#type' =&gt; 'textfield',
      '#prefix'=&gt;'&lt;td&gt;',
      '#suffix'=&gt;'&lt;/td&gt;',
    );
       $form['c3'] = array(
      '#type' =&gt; 'textfield',
      '#prefix'=&gt;'&lt;td&gt;',
      '#suffix'=&gt;'&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;',
    );
  </code></pre>