renathy
(Renate Vidruska)
1
I have the following:
<?php echo CHtml::label('manual', 'manual');?>
<?php echo CHtml::radioButton("manual", true); ?>
<?php echo CHtml::label('auto', 'auto');?>
<?php echo CHtml::radioButton("auto", false); ?>
It gives me label and radioButton on separate lines.
I need label and radioButton on the same line.
How to do this?
R.
You need to modify your css to accomplish that. Try floating the label left.
Give this a try:
div.form label
{
font-weight: bold;
font-size: 0.9em;
float:left;
margin-right:10px;
text-align:right;
width:100px;
}
You might also consider using radioButtonList if it’s applicable.
gerhard
(gerhard@ecolar.co.za)
3
Or try css:
display : inline !important;