Use $this->Form->submit('Submit', array('div' => false)); and then 
$this->Form->end(); (with nothing inside the brackets).

Jeremy Burns
Class Outfit

http://www.classoutfit.com

On 5 Jul 2011, at 14:24, barricades wrote:

> Hi thanks for this. This looks exactly what I need. The only thing is
> I've read over the manual but I can't find out how I can get the
> submit button to not be a div. Doing the array('div'=>false) works on
> the input field but not the $form->end button.
> 
> Am I missing something? There is an array of options you can use with
> end but not one to turn off the div
> 
> On Jul 5, 4:43 am, Jeremy Burns | Class Outfit
> <[email protected]> wrote:
>> Do 'div' => false to remove the divs. Divs are by nature block level 
>> elements so the div around the submit button will want to push it down a 
>> row. Then your CSS will be easier.
>> 
>> Jeremy Burns
>> Class Outfit
>> 
>> http://www.classoutfit.com
>> 
>> On 5 Jul 2011, at 00:05, barricades wrote:
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>>> Sorry for being such a newbie but I have been trying to position it
>>> with floats but I haven't been able to make it work. Would you be so
>>> kind as to give me more details?
>> 
>>> thanks for replying btw
>> 
>>> On Jul 4, 11:53 pm, Tilen Majerle <[email protected]> wrote:
>>>> yes you can do this with CSS float positioning div
>>>> --
>>>> Lep pozdrav, Tilen Majerlehttp://majerle.eu
>> 
>>>> 2011/7/5 barricades <[email protected]>
>> 
>>>>> Apologies for this (probably) silly question
>> 
>>>>> I've googled but strangely I can't find the answer to what must surely
>>>>> be a common want. I did find some articles but none that provided a
>>>>> solution I either understood or was the same.
>> 
>>>>> I want to have my submit button to the right of my search form field.
>>>>> But I also want to keep my label above the form field. So it's Label,
>>>>> then on a new line the field with the search button on the same line.
>> 
>>>>> I've tried all sorts of css but because cakephp produces all the
>>>>> different bits in different divs nothing has worked. I know I could
>>>>> just code it manually with spans but surely theres a cakey way of
>>>>> doing it?
>> 
>>>>> --
>>>>> Our newest site for the community: CakePHP Video Tutorials
>>>>> http://tv.cakephp.org
>>>>> Check out the new CakePHP Questions sitehttp://ask.cakephp.organdhelp
>>>>> others with their CakePHP related questions.
>> 
>>>>> To unsubscribe from this group, send email to
>>>>> [email protected] For more options, visit this group
>>>>> athttp://groups.google.com/group/cake-php
>> 
>>> --
>>> Our newest site for the community: CakePHP Video 
>>> Tutorialshttp://tv.cakephp.org
>>> Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help 
>>> others with their CakePHP related questions.
>> 
>>> To unsubscribe from this group, send email to
>>> [email protected] For more options, visit this group 
>>> athttp://groups.google.com/group/cake-php
> 
> -- 
> Our newest site for the community: CakePHP Video Tutorials 
> http://tv.cakephp.org 
> Check out the new CakePHP Questions site http://ask.cakephp.org and help 
> others with their CakePHP related questions.
> 
> 
> To unsubscribe from this group, send email to
> [email protected] For more options, visit this group at 
> http://groups.google.com/group/cake-php

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to