Friday, September 25, 2009

RE: Style a Submit

Yeah I went with button as the input. All is good.
 
Thanks
 
Dave


From: Eber Freitas Dias [mailto:eber.freitas@gmail.com]
Sent: September-25-09 11:29 PM
To: cake-php@googlegroups.com
Subject: Re: Style a Submit

You also should consider using the <button> tag instead of the default input button.

Take a look: http://www.w3schools.com/tags/tag_button.asp

The button tag is much more flexible as it is totally customizable, and you can put orther elements inside of it, like images:

<button><img src="image.jpg" alt="Ha!" /></button>

Then, you just close the form with $form->end(); Maybe this will help!

On Fri, Sep 25, 2009 at 9:54 PM, brian <bally.zijn@gmail.com> wrote:

The form should have an ID. Just create a CSS rule for #form_id
input[type='submit'].

Also, Cake's default is to put the submit button in a div with
class="submit" so you can use that, also, for your CSS selector.

On Fri, Sep 25, 2009 at 6:10 PM, Dave Maharaj :: WidePixels.com
<dave@widepixels.com> wrote:
> How can you style a submit with a CSS style in directly in the echo
> $form->end('Save');
>
> I want to use a CSS sprite which has the various states but when nothing i
> try works.
>
> Has anyone done this? Ideas?
>
> Dave
> >
>





--
Éber Freitas Dias

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

No comments: