...

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



solarwind2424
03-15-2005, 01: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">
</form>



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!!!

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


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

or


<style type="text/css">

input { background: blue; }

</style>
applies to ALL input tags

Do you know about css?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum