Choose color in input type="submit" ...

0

How could I set a color for input . Below I have one of the input 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 do I make it have a color palette and can I choose which color I could set for input ?

    
asked by anonymous 17.09.2014 / 16:51

2 answers

1

Change css directly in 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" /> 
    
17.09.2014 / 18:36
0

There is the ColorPicker plugin for jQuery, I think it works for you:

link

    
17.09.2014 / 17:38