I tried to change the color of the text in the submit button type but, I don't know why I am not able to change it.
.button {_x000D_
width: 105px;_x000D_
height: 20px;_x000D_
background-image: url('tiny.gif');_x000D_
line-height: 20px;_x000D_
padding-bottom: 2px;_x000D_
vertical-align: middle;_x000D_
font-family: "Lucida Grande", Geneva, Verdana, Arial, Helvetica, sans-serif;_x000D_
font-size: 13px;_x000D_
<!--font-weight: bold;_x000D_
-->text-transform: none;_x000D_
border: 1px solid transparent;_x000D_
}_x000D_
_x000D_
.button:hover {_x000D_
background-image: url('tiny_.gif');_x000D_
}
_x000D_
<input type="submit" value="Fetch" class="button" />
_x000D_
I was getting a problem when I tried to change the color of the submit button.
This question is related to
html
css
button
submit-button
.button_x000D_
{_x000D_
font-size: 13px;_x000D_
color:green;_x000D_
}
_x000D_
<input type="submit" value="Fetch" class="button"/>
_x000D_
you try this:
<input type="submit" style="font-face: 'Comic Sans MS'; font-size: larger; color: teal; background-color: #FFFFC0; border: 3pt ridge lightgrey" value=" Send Me! ">
<button id="fwdbtn" style="color:red">Submit</button>
Use this CSS:
color: red;
that's all.
.btn{
font-size: 20px;
color:black;
}
<input type = "button" style ="background-color:green"/>
Source: Stackoverflow.com