Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-26-2008, 07:29 PM
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 06-26-2008, 07:58 PM
Member
 
Join Date: Jun 2008
Location: Florida
Posts: 92
Default

If you are keeping the default decorators then you need to simply define some css that will allow the items in an definition list to appear side by side.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 11:06 PM.