Hello everyone,
This is what I’m trying to do.
I want to give user the option to enter their e-mail address and then hit the “Subcribe Now” button to send their e-mail address to me.
The problem is, I want to create a custom “submit button” that will match the design of the page. The regular submit button is not appealing and just too dry.
I want to make the form and then add a fancy button that user can click to send the data.
So the question, how do you create a custom form submit button?
Thanks for all your help.
IC
blain
December 12, 2008, 10:46pm
2
Two option.
<input type="image" src="path/to/image">
<input type="submit">
Then style with CSS
felgall
December 13, 2008, 1:07am
3
You left out option 3.
<button type="submit">custom button content including HTML goes here</button
system
December 13, 2008, 2:03am
4
You didd this
</button
Forget the closing > less
Well, I’m not going to be using text, because I will be including the text on the button as a single graphic.
I will be creating the graphic in Fireworks.
Anyway guys I’m a little confused by the addition and subtraction.
Which is the best way?
IC
system
December 13, 2008, 4:57am
6
Thats like saying what is the best programming language. I would personally use option 1.
Just another thought, is there a way to make the image in the button rollover, like applying a hover state?
Thanks everyone.
IC
system
December 14, 2008, 12:12am
8
CSS can do that. Javascript can too I think. Not sure
I saw the Javascript method but don’t know if it’s really worth it.
Have no ide on the css version.
IC
system
December 14, 2008, 12:25am
10
I am not sure but if you assign an id to the input then do like
#idname a:hover
that will style the link. Actually on second thought I only think JavaScript can do it. I have never done it any other way at least.
Erik_J
December 14, 2008, 11:40am
11
Maybe this post can be of interest.
blain
December 14, 2008, 4:32pm
12
If you apply the image to a submit button using css background, then you can add a different image for the hover state.