[SOLVED] Button Colours (CSS perhaps)?

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
Joe
Forum Regular
Posts: 939
Joined: Sun Feb 29, 2004 1:26 pm
Location: UK - Glasgow

Button Colours (CSS perhaps)?

Post by Joe »

I had an idea of making a user search on my site and all is working great but I want an html submit button with the colour #E1E1E1. I personaly think CSS would do the job but I am not familiar with the language at all. Can anyone please lead me in the right direction or perhaps supply me with a code snippet on how to do this?

Thanks



Joe 8)
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Code: Select all

<html>
<style type="text/css">
input.sub &#123; background-color: #E1E1E1; &#125;
</style>
<body>
<form><input class="sub" type="submit" value=" Joe's Submit " /></form>
</body>
</html>
User avatar
Joe
Forum Regular
Posts: 939
Joined: Sun Feb 29, 2004 1:26 pm
Location: UK - Glasgow

Post by Joe »

Thanks a lot feyd! Worked a treat ;)
Post Reply