how do I display radio button labels BESIDE the radio button

Hi there,

in my view, I use: <?php echo CHtml::activeRadioButtonList($tosModel,‘acceptTos’,array(1=>“I agree”,0=>“I disagree”)); ?>

however, I agree is above the radio button, NOT beside it…

how can I make the "I agree" and "I disagree" beside their labels INSTEAD of above?

Please help!

You can use the special htmlOption "template" for customize the label.

take a look at this post