Hello everybody,
How can I style each RadioButton element in a RadioButtonList differently?
What I would like to do:
element 1->display:block
element 2->display:none
element 3->display:none
element n->display:none
.
.
.
I think there are some CSS approaches to this by calling the elements, but they aren’t very reliable in some browsers.
This is my testing code now:
<style>
.col
{
float:left;
}
.row
{
background-color:#222222;
}
</style>
<?php echo $form->radioButtonList(
$envio,
'operador',
$arrayRadios,
array( 'template'=>"
<div class='col'>
<div class='row'>{input}</div><div class='row'>{label}</div>
</div>
"));
?>
Thanks in advance!!