you can also call $form->input like this
$form->input('Model.field',array('label'=>array('text'=>'The LABEL Has
Power','class'=>'this-label-has-class')));
Sam D
On Sat, Feb 23, 2008 at 1:21 AM, francky06l <[EMAIL PROTECTED]> wrote:
>
> b logica, you are right, vertical-align should be set on t
b logica, you are right, vertical-align should be set on the
containing block, I was just answering on the syntax for passing
style..
On Feb 23, 1:38 am, "b logica" <[EMAIL PROTECTED]> wrote:
> Though vertical-align on the label doesn't affect the block, itself,
> but the content. It might not ma
Though vertical-align on the label doesn't affect the block, itself,
but the content. It might not make a difference in some cases but it's
important to know. IMO, it'd be better to style the block with margin,
float, width, and friends.
On Fri, Feb 22, 2008 at 6:44 PM, francky06l <[EMAIL PROTECT
or :
$form->label('Model.field', array('style' => 'vertical-align: top;'))
On Feb 22, 7:07 pm, "b logica" <[EMAIL PROTECTED]> wrote:
> What doctype are you using? I've never heard of a valign attribute for label.
>
> You can set the class in the label() method:
>
> $form->label('Model.field', ar
What doctype are you using? I've never heard of a valign attribute for label.
You can set the class in the label() method:
$form->label('Model.field', array('class' => 'LabelClass'))
On Fri, Feb 22, 2008 at 10:06 AM, Richard Ward <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> How do you set the labe