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 PROTECTED]> wrote:
>
> 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', array('class' => 'LabelClass'))
> >
>
>
> > On Fri, Feb 22, 2008 at 10:06 AM, Richard Ward <[EMAIL PROTECTED]> wrote:
> > > Hi all,
> >
> > > How do you set the label options (valign) on a form->input tag generated
> > > through baking?
> >
> > > I know how to change the label text:
> > > $form->input('Model.field', array('label' => 'labelText'));
> >
> > > Is there some option setting or must I recode it to:
> >
> > > $form->label('Model.field', 'labelText', array('valign' => 'top'));
> > > $form->input('Model.field');
> >
> > > Thanks,
> > > Richard
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---