How To Change Radio Button And Checkbox Vertically.

Hi eveybody;

I have a problem with my radio buttons and checkboxes while using in a form with my codes.


<div class="row">

		<?php echo $form->labelEx($model,'cinsiyet'); ?>

		<?php 


		echo $form->radioButtonList($model, 'cinsiyet',

                    array(  1 => 'Erkek',

                            2 => 'Kadın' ),

                  

                   array(

    	'labelOptions'=>array('style'=>'display:block'), // add this code

    	'separator'=>'  ',

		));


		?>

		<?php echo $form->error($model,'cinsiyet'); ?>

		

	</div> 

When i change to my options as above, i am getting error.

I want to do my form as




label->radio

label->radio



but it seems like




label

radio

label

radio



.

How can I achieve this ?

You can add HTML params


'style'=>'display: inline-block'

to both $form->labelEx and echo $form->radioButtonList

Hope this helps.