Click to See Complete Forum and Search --> : Can a form submit button have its color set?


Mike Burdick
05-22-2005, 06:06 PM
Can a form submit button have its color changed or does it have to be the default gray?

NogDog
05-22-2005, 06:11 PM
<input type=submit value="Submit" sytle="background-color: #336699; color: #ffffff;">

Mike Burdick
05-22-2005, 06:20 PM
NogDog,

Thanks!

jmaresca2005
05-22-2005, 08:25 PM
u caN Also do this in css

JPnyc
05-22-2005, 08:51 PM
He did. He used inline CSS.

BeachSide
05-22-2005, 10:25 PM
No offence NogDog but that will never work... style is spelled wrong :p
It needs to be...

<input type=submit value="Submit" style="background-color: #336699; color: #ffffff;">


I addition to that you can set the borders, font (face/size/color) and with a bit of JavaScript you can even make it like an <a> link and give it a hover :D

PeOfEo
05-22-2005, 11:25 PM
No offence NogDog but that will never work... style is and with a bit of JavaScript you can even make it like an <a> link and give it a hover :D
That bit sounds risky.

BeachSide
05-23-2005, 01:07 AM
That bit sounds risky.

Only if you depend on it. If it doesn't matter if it works or not then it is perfectly acceptible in my book. After all that is the point of JavaScript isn't it. To add nifty interactive fun to the page without relying upon it for functionality?

PeOfEo
05-23-2005, 09:13 AM
Yes... but most of the time my command buttons are posting important data to the server so I wouldn't let js anywhere near them!