Choose color in <input type="Submit"...>

Asked

Viewed 1,831 times

0

How could I set a color for the input. Below I have one of the input that I use.

<input type="submit" id="Submit69" class="btn btn-default btn-block" value="REP+H4" title="Clique Selecionar as Soluções" />

The value of the text I can change, but how to make it have a color palette and be able to choose which color to set for the input?

2 answers

1

Change css directly in the input component:

<input type="submit" id="Submit69" class="btn btn-default btn-block" style="background-color: #aaaaaa"
value="REP+H4" title="Clique Selecionar as Soluções" /> 

Change via css class:

<style>
   .backgroundModificado {
       background-color: #abcdef;
   }
</style>
<input type="submit" id="Submit69" class="btn btn-default btn-block backgroundModificado" style="background-color: #aaaaaa"
        value="REP+H4" title="Clique Selecionar as Soluções" /> 

0

Browser other questions tagged

You are not signed in. Login or sign up in order to post.