I’m experiencing error in alignment when try to convert div to table.
How to solve?
<tr><td>
<?php echo $form->labelEx($model,'gender'); ?></td>
<td>
<?php echo $form->labelEx($model,'M');?>
<?php echo $form->radioButton($model,'gender',array('value'=>'M')); ?>
<?php echo $form->labelEx($model,'F');?>
<?php echo $form->radioButton($model,'gender',array('value'=>'F')); ?>
<?php echo $form->error($model,'gender'); ?>
</td></tr>

Probably because the label and the radio button is wrapped by a div, or the element has the style property display:block;