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>

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