Search code examples
phpformsdrupal-6coding-styledrupal-fapi

Drupal 6 Forms formatting


I am trying to create a form in drupal 6 that has multiple items on the same line. More specificly, I want a right alligned form what has a textfield, dropdown-box, and button all on the same line.

I know how to create the items, but drupal tends to put them all on seperate lines. How do I put it on one line?

Thanks


Solution

  • You'll need to use CSS to position them. Each of them should be in their own div, so it shouldn't be too hard.

    P.S. Hard-coding something to be on the same line in your markup is not a good idea. You should always do layout and positioning in your CSS and leave the markup just for outputting items to the page.