Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

.button {    width: 105px;    height: 20px;    background-image: url('tiny.gif');    line-height: 20px;    padding-bottom: 2px;    vertical-align: middle;    font-family: "Lucida Grande", Geneva, Verdana, Arial, Helvetica, sans-serif;    font-size: 13px;    <!--font-weight: bold;    -->text-transform: none;    border: 1px solid transparent;  }    .button:hover {    background-image: url('tiny_.gif');  }
<input type="submit" value="Fetch" class="button" />

I was getting a problem when I tried to change the color of the submit button.

like image 960
Venkata Krishna Avatar asked Sep 18 '12 05:09

Venkata Krishna


People also ask

How can I change the font color of submit button?

Use a semi-colon to separate the different style elements in the HTML button tag. Type color: in the quotation marks after "style=". This element is used to change the text color in the button.

How do I change the color of a submit button in CSS?

You can easily change the color of the Next, Back and Submit buttons as well as the Progress bar on the Style tab of your survey. To do so simply go to Style > Button/Accent. The Button/Accent color applies to the Next, Back and Submit buttons as well as the progress bar.

How do I change the submit button text?

The attribute that changes the name shown on the Submit Button is the Value attribute. You can change the text that appears on the Submit Button by setting the Value attribute to the desired name you want.

How do I change the button text color in python?

We can also change the foreground color by using the 'fg' property of the button widget in Tkinter. We can also use the configure method to change the color. As we know that we can use the 'bg' and 'fg' property of the Button widget to change the color, we need to pass this variable while using the Button object.


1 Answers

.button  {      font-size: 13px;      color:green;  }
<input type="submit" value="Fetch" class="button"/>
like image 101
mtk Avatar answered Sep 30 '22 18:09

mtk