View Full Version : Button Background Colour Change ----- Help Me Please!!!

03-15-2005, 12:11 AM
My main question is: how do you change the colour of a button:

For example: this is a normal button:

<form name="form1">
<input type="button" name="button1" value="whatever">

Now... how do i change the background colour of that button so it just does not stay
at a boring white or grey, lets say I want it to be the colour "blue".

Any help much appreciated, thankyou!!!

03-15-2005, 02:06 AM
You need css:

<input type="button" ... style="background: blue;" />


<style type="text/css">

input { background: blue; }

applies to ALL input tags

Do you know about css?