2008/9/22 toby78 <[EMAIL PROTECTED]>

>
> When you use the form->input, you automatically get a label tag
> generated etc....
>
> However this does not contain a class.
>
> So usually, the best thing to get several form fields and labels
> aligned is:
>
> <div class="label">Something</div>
> <div class="inputfield"><input type="text" ..../></div>
>
> <div class="label">Something2</div>
> <div class="inputfield"><input type="text" ..../></div>


- You can also use syntax like <?php echo $form('name', array('label' =>
array('text' => 'Name', 'class' => 'myLableClass'))); ?> to provide class
for label


>
>
> to use a re-usable class for the lables and just use a width that will
> be big enough.
>
> I want to avoid having a css entry for every single input field and
> would like to use a class.
>
> How can this be done in cakePHP, so that all "labels" use the same css
> class  ?
>
> Thanks!
> >
>


-- 
Amit

http://amitrb.wordpress.com/
http://coppermine-gallery.net/
http://cheesecake-photoblog.org/
http://www.sanisoft.com/blog/author/amitbadkas

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to