Reputation: 313
need give background color to My text area field in bootstrap this is text area field
<div class="form-group">
<div class="col-xs-12">
<textarea class="form-control" id="exampleTextarea" rows="6" placeholder="Message"></textarea>
</div>
</div>
Upvotes: 10
Views: 21873
Reputation: 837
You need to add one of this prepared classes https://getbootstrap.com/docs/4.1/utilities/colors/#background-color like .bg-warning
or .bg-danger
etc:
<textarea class="bg-warning"></textarea>
or in your case it will be like
<textarea class="form-control bg-warning"...
Upvotes: 1
Reputation: 14746
Add this class.
textarea#exampleTextarea {
background: gray;
}
Or you can use this as well.
#exampleTextarea {
background: gray;
}
Upvotes: 11
Reputation: 861
you can try it
textarea#exampleTextarea{
background-color:gray !important;
}
Upvotes: 1