-1

My objective is to improve the look and feel of a form developed in Drupal 7.

By default, I have (as an example):

  • Name (label)
  • BLANK INPUT box (below the label)

How to display the label and input box as inline ?

1 Answer 1

0

you can do this with css float

A more difficult ways that render the items via php preprocessing before css adjusts the layout) would be to create a php template file and use theme functions for the form in your theme

Here is tutorial that uses both methods http://www.jaypan.com/tutorial/themeing-drupal-7-forms-including-css-and-js

also, it depends on what kind of form you are theming. Here is another example for webforms https://drupal.org/node/1157306

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.