3
I have these radio Buttons in which it serves to specify the level of severity of a given occurrence. And I’d like to know how I could change their color?
Follow this illustration example:
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<h1>
Nível de gravidade
</h1>
<div class="form-group">
<div class="btn-group" data-toggle="buttons">
<label class="btn btn-default active">
<input type="radio" value="B" checked autocomplete="off"> Branco
</label>
<label class="btn btn-default">
<input type="radio" value="A" autocomplete="off"> Amarelo
</label>
<label class="btn btn-default">
<input type="radio" value="L" autocomplete="off"> Laranja
</label>
<label class="btn btn-default">
<input type="radio" value="V" autocomplete="off"> Vermelho
</label>
</div>
</div>
The colors I’d like to put on are:
white, yellow, orange and red
Each color corresponding to your radio button.
You can put background-color: red ! Important; as it will replace bootstrap patterns
– Marcelo Batista
Downvoter any improvement or suggestion you would like to add in the question?
– gato
Otherwise I would have done it.
– Marcelo Batista