I would use the forms standard DIV class instead of giving it an id.
For example:

[css code]
.input{
   width:40em;
   float:left;
}
.input label{
   width:20%;
   float:left;
}
.input input{
   width:75%;
   float:left;
}
[/css code]

If you have more than one input field, then you can use the input
fields id to define different width to those that may require a longer
or shorter input field.
Enjoy,
   John

On Apr 19, 9:09 am, sebb86 <kahlc...@googlemail.com> wrote:
> John
>
> Hello,
> thank you. I had a similar idea. But how do i code this?
>
> [my css code]
> #input
> {
>   float:left;}
>
> [/code]
>
> [view code]
> echo $form->input('db_field', array('label' => 'Label', 'maxLength' =>
> '20%', 'div' => array('id' => 'input')));
> [/code]
>
[snip]

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to