Lion
Lion

Reputation: 313

how to give background color to textarea field in bootstrap

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

Answers (5)

slava
slava

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

Aleko
Aleko

Reputation: 3

you can use the ID

#email { 
  background-color: #E2E4E9 !important;
}

Upvotes: 0

Add this class.

textarea#exampleTextarea {
    background: gray;
}

Or you can use this as well.

#exampleTextarea {
    background: gray;
}

Upvotes: 11

vjy tiwari
vjy tiwari

Reputation: 861

you can try it

textarea#exampleTextarea{ 
    background-color:gray !important;
}

Upvotes: 1

Farhad
Farhad

Reputation: 4181

try this:

textarea.form-control {
color: #63AEEB
}

Upvotes: 0

Related Questions