For getting color in buttons you need to use CSS [cascading stylesheets]
see the below code i have written which will print the text on Button in Red color
let me know if this helps you.
-Nagendra
-
-
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
-
"http://www.w3.org/TR/html4/strict.dtd">
-
-
<HTML>
-
<HEAD> <TITLE> Color on Buttons with CSS</TITLE>
-
-
<style type="text/css">
-
.altButtonFormat {
-
background-color: #c0c0c0;
-
font-family: verdana;
-
border: #000000 1px solid;
-
font-size: 12px;
-
color: RED
-
}
-
</style>
-
-
</HEAD>
-
<BODY >
-
-
<FORM name="form1" action="" method="POST" >
-
-
<INPUT type=submit value=Submit class="altButtonFormat">
-
<INPUT type=reset value=Reset class ="altButtonFormat">
-
-
<FORM>
-
</BODY>
-
</HTML>
-
-
-
Hello friends,
I have a doubt on the button and that is how to set the color for the text that is displayed on the button. I tried on following ways:
<input type="button" name="click" value="Add Comment" style="font-color: red">
<font color=red><input type="button" name="click" value="Add Comment" style="font-color: red"></font>
So, my option is that put the color for Add Comment. Please try for me and suggest me.