Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to change colors in Submit Button ? 1

Status
Not open for further replies.

kippie

Technical User
Nov 8, 2001
158
I would like to adapt colors in a submit button, so that it is a bit nicer than the usual dull grey. But how?
Kippie
 
This works only in IE:

<INPUT TYPE=&quot;submit&quot; width=&quot;200&quot; height=&quot;40&quot; style=&quot;background-color:yellow; color:red; name=&quot;buttoncolors&quot; value=&quot;colored button in IE><br>

See also my earlyer posts at thread215-158472

Hope this helps,
Erik
 
Thanks, this helps. But is it also possible to change the border sides of this button ?
Kippie
 
Add border:none; to the style to erase the border.

Add border-color:yellow; to the style to color the border. Then you still see some grey shadow-borders.

Erik
 
This will set a nice border arround the button:
border: double yellow;

you can make it thinner with:
border:3px double yellow; (this will set width-style-color at once)

for more possible CSS properties:
thread215-113187

Erik



 
Great. I can make it now exactly as I want! Many thanks. One last question I'm puzzled about. When you press a button there appears a kind of grey dotted rectangle within the button. It disappears when you press another button. Is it possible to get rid of that rectangle ?
Kippie
 
<INPUT onfocus=&quot;blur()&quot; TYPE=&quot;submit&quot; style=&quot;.......>

Have I helped you enough?? :)

Erik
 
Yeaaaaaaaaaaaah, you have. But seriously, you have been of great great help. It would have taken me hours to find this out just by myself. And: I have some useful other sides so that I can solve other questions with buttons myself. Thanks again!
Kippie
 
Your Welcom,

By the way, I saw you allready post a message when you where a visitor. There I saw that you are probably Dutch?

Well I'm to!! LOL. I was curious for your site &quot;DRSVN.nl&quot;

And I found 2 bugs, (1 bug could be harmful for you).
I couldn't find one email-address on the site !!!!

So post here your email-address and I tell you the details, because this isn't the right place to tell it !

Erik
 
OK, Yes I'm dutch too and you can mail me at kippie@mail.com
Kippie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top