'1' => 'Front Cover Page',
'2' => 'Optional Page',
'3' => 'Back Cover Page'
);
echo $this->Form->radio('FlyerPage.TypeOfPage', $options, array('legend'=>false,'value'=>$val,'class'=>'TypeOfPage','separator'=>'<br />','style'=>'background:#FFF') );
try this might help you.
On Sunday, September 2, 2012 10:35:21 PM UTC+5:30, Daniel wrote:
--I have a radio button on a form, but the text (labels) are not aligned with the circles of the radio control.This is the code I have in my view file:$options = array(
'1m' => '1 month',
'3m' => '3 months',
'6m' => '6 months',
'1y' => '1 year'
);
$attributes = array(
'value' => '1y',
'legend' => false
);
echo $this->Form->radio('sub_type', $options, $attributes);The alignment gets worse towards the bottom.Do I need to edit some CSS to correct this?Thanks.
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment