hi hugo

heres a form similar the remember the milk which doesnt use tables

http://veerle-v2.duoh.com/blog/comments/styling_forms_in_css/

should give you some pointers.

mikek

On Tue, July 20, 2010 4:04 pm, Hugo M wrote:
> Yeah I agree! Tables are for tabular data. But that site uses tables :O,
> but
> maybe is not the best option.
>
> Thanks I will se what I can do
>
> 2010/7/20 Mike Karthauser <mi...@brightstorm.co.uk>
>
>> hi hugo
>>
>> On Tue, July 20, 2010 3:07 pm, Hugo M wrote:
>> > Hi all! I have a question, I'm making forms using form helper.
>> >
>> > What's better, creating forms with tables or with divs? Divs are the
>> only
>> > way to create forms with the cakePHP form helper, right?
>> >
>> > I'm not a css master :P, so maybe I don't understand very well why
>> using
>> > divs instead of tables in forms (I understand the difference when
>> creating
>> > nomal page content). The real problem is that I need to do something
>> like
>> > http://jquery.bassistance.de/validate/demo/milk/ but I don't want to
>> have
>> > an
>> > ugly code like:
>> >
>> > <tr>
>> > <td>
>> > <?= $form->input(...) ?>
>> > </td>
>> > </tr>
>> >
>> > etc.
>> >
>> > I want:
>> >
>> > <?
>> > echo $form->create(...);
>> > echo $form->input(...);
>> > ?>
>> >
>> > etc. :P
>> >
>> > Is that possible with tables? Can I make something like the link
>> example
>> > without tables?
>>
>> it is indeed possible without tables. the example you sited doesnt use
>> them either.
>>
>> you'll be able to use output from form helper to achieve this although
>> can
>> be a bit tricky to support old browsers.
>>
>> tables are for display of tabular data not for styling.
>>
>> the styles already defined in cake.generic.css will get you most of the
>> way there although you'll need to study the style sheet in
>> http://jquery.bassistance.de/validate/demo/milk/  to tighten it all up.
>>
>> mikek
>>
>> --
>> Mike Karthauser
>> Managing Director - Brightstorm Ltd
>>
>> Email: mi...@brightstorm.co.uk
>> Web: http://www.brightstorm.co.uk
>> Tel:  07939 252144 (mobile)
>> Fax: 0870 1320560
>>
>> Address: 1 Brewery Court, North Street, Bristol, BS3 1JS
>>
>> 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<cake-php%2bunsubscr...@googlegroups.com>For
>> more options, visit this group at
>> http://groups.google.com/group/cake-php?hl=en
>>
>
> 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
>


-- 
Mike Karthauser
Managing Director - Brightstorm Ltd

Email: mi...@brightstorm.co.uk
Web: http://www.brightstorm.co.uk
Tel:  07939 252144 (mobile)
Fax: 0870 1320560

Address: 1 Brewery Court, North Street, Bristol, BS3 1JS

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