[html] How to set text color in submit button?

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.

_x000D_
_x000D_
.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_
_x000D_
_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

The answer is


_x000D_
_x000D_
.button_x000D_
{_x000D_
    font-size: 13px;_x000D_
    color:green;_x000D_
}
_x000D_
<input type="submit" value="Fetch" class="button"/>
_x000D_
_x000D_
_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"/>

Examples related to html

Embed ruby within URL : Middleman Blog Please help me convert this script to a simple image slider Generating a list of pages (not posts) without the index file Why there is this "clear" class before footer? Is it possible to change the content HTML5 alert messages? Getting all files in directory with ajax DevTools failed to load SourceMap: Could not load content for chrome-extension How to set width of mat-table column in angular? How to open a link in new tab using angular? ERROR Error: Uncaught (in promise), Cannot match any routes. URL Segment

Examples related to css

need to add a class to an element Using Lato fonts in my css (@font-face) Please help me convert this script to a simple image slider Why there is this "clear" class before footer? How to set width of mat-table column in angular? Center content vertically on Vuetify bootstrap 4 file input doesn't show the file name Bootstrap 4: responsive sidebar menu to top navbar Stylesheet not loaded because of MIME-type Force flex item to span full row width

Examples related to button

How do I disable a Button in Flutter? Enable/disable buttons with Angular Disable Button in Angular 2 Wrapping a react-router Link in an html button CSS change button style after click Circle button css How to put a link on a button with bootstrap? What is the hamburger menu icon called and the three vertical dots icon called? React onClick function fires on render Run php function on button click

Examples related to submit-button

Run php function on button click How do I use an image as a submit button? How to set text color in submit button? CSS selector for disabled input type="submit" Multiple submit buttons on HTML form – designate one button as default Multiple submit buttons in an HTML form