Forum Moderators: open

Message Too Old, No Replies

Submit button to look "not as a button"

Could it be done?

         

henry0

3:05 pm on Dec 30, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I would like finding a way to create a form "submit" that does not look like a button but performs the same

Could it be done?

I am not discussing changing the label but getting rid of the button aspect. More looking like a regular link.

Thanks

Robin_reala

3:17 pm on Dec 30, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



input[submit] {
border: 0;
background-color: #fff;
color: #000;
}

Assuming your text is black and your background is white. Bear in mind that a) some browsers won't style form controls and b) IE doesn't suport type selectors llike I've used above so you'll want to give your submit buttons a class and use that instead.

Alternatively, an <input type="image"> will also submit, so you might be able to use a graphic with satisfactory results.

stajer

5:29 pm on Dec 30, 2005 (gmt 0)

10+ Year Member



You can create a text link that will submit a form:

<a href="javascript:form.submit();">Click to Submit</a>

henry0

5:44 pm on Dec 30, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks all
Exactly what I had a need for!