Re: form-input label options

2008-02-23 Thread francky06l

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 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 cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: form-input label options

2008-02-23 Thread Samuel DeVore

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 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 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
  




-- 
-- 
(the old fart) the advice is free, the lack of crankiness will cost you

- its a fine line between a real question and an idiot

http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/
http://blog.samdevore.com/cakephp-pages/my-cake-wont-bake/
http://blog.samdevore.com/cakephp-pages/i-cant-bake/

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: form-input label options

2008-02-22 Thread b logica

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 cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: form-input label options

2008-02-22 Thread francky06l

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 cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: form-input label options

2008-02-22 Thread b logica

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 cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---