Hello there. I’ve made buttons for my CMS out of divs with CSS applied to them. Is there anyway I can use the same div CSSed button as an actual working submit button for a form? I only ask, because using a normal submit form button looks out of place compared to the other nice buttons I have.
[FONT=“Georgia”]You can style your buttons with CSS rather than trying to turn your <div>'s into buttons. The only way that would work is with javaScript.
You could also use <input type=“image” /> as a submit… that why you can make gorgeous images to act as your buttons instead.[/FONT]
Thank you so much for your help people! Sorted it! And get to use my div buttons! … <a href=“javascript: document.form.submit();”></a> is the answer! Good stuff
No, no, it’s cool. This web app thing I’m making is kinda just for me. I will personally always have javascript on!
I do realise that using javascript for form submits in general, for sites used by the public, is probably not a good thing. For my own personal project though, it’s perfect.
Cheers for all your help. Much appriciated, as always.