View Single Post
  #1 (permalink)  
Old 06-26-2008, 07:29 PM
heather heather is offline
Junior Member
 
Join Date: Jun 2008
Posts: 1
Thumbs up displaying multiple form elements on a single line

Hi, I've searched the forums and all over google for this, but I can't seem to get my form to display how I would like.

What I am trying to do is put two Zend_Form_Element_Select elements on the same line, instead they appear on separate lines.

I have tried:

PHP Code:
$options = array('R' => 'red''g' => 'green''b' => 'blue');
$colors = new Zend_Form_Element_Select('colors');
$colors->setRequired(true)
            ->
setValue('R')
            ->
setOptions(array('separator' => ''))
            ->
setMultiOptions($options);

$colors2 = new Zend_Form_Element_Select('colors2');
$colors2->setRequired(true)
            ->
setValue('g')
            ->
setOptions(array('separator' => ''))
            ->
setMultiOptions($options);

$this->addElement($colors);
$this->addElement($colors2); 
but still they show up on separate lines (however it works properly if you use Radio instead of Select).

Can anyone help me?

Thanks
Reply With Quote