Toby - you seem to be using the google groups as a source for all your
answers. Might I reccomend that you learn to use the api.cakephp.org
pages and the book.cakephp.org pages as a reference before posting
here?
On Sep 22, 7:17 am, RichardAtHome <[EMAIL PROTECTED]> wrote:
> Note:
>
> Something
Note:
Something
Something2
..will create an invalid form: You MUST have a label linked to every
input element.
Here's a snippet from my own cake.generic.css:
/*
* forms
*/
#content form {
padding: 16px;
background-color: #DDD;
-moz-border-radius: 16px;
}
#content fi
Thanks, this works.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For m
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:
>
> Something
>
>
> Something2
>
- You can
You can use an array to specify label's tag attributes:
$form->input('Schedule.expected_check_in', array('label' =>
array('class' => 'input-label', 'text' => 'Expected Arrival', 'title'
=> 'When are you expecting to arrive at the place?')));
The 'text' key is the one to be used as the text, so t
Hi toby,
> 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 ?
Cake wraps the label and input in a div, by default it applies a class
of 'input' to that div. So
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:
Something
Something2
to use a re-usable class for the lables and just use a width that will
b