[support] Forms API question

Earl Miles merlin at logrus.com
Sun Feb 12 18:43:19 UTC 2006


Kobus Myburgh wrote:
> Hi,
> 
> I am busy taking over maintainership of automember.module from njivy, and making great progress, but I have a simple layout issue that bothers me. See attached screenshot.
> 
> Is there a way to get the items inline instead of below each other as shown in the screenshot?
> 
> I have defined no '<div>' tags by means of #prefix or #suffix, so that is not the reason for this problem.

I believe that if you wrap the form item in a <div class="container-inline"> you 
will achieve the effect you want:

$form['item'] = array(
   '#type' => 'textfield',
   '#prefix' => '<div class="container-inline">Please allow ',
   '#suffix' => ' for delivery.</div>',
   '#default_value' => $etc,
);


More information about the support mailing list