Bootstrap: v4.0.0-alpha.5: input placeholder color is not changeable.

Created on 25 Nov 2016  路  5Comments  路  Source: twbs/bootstrap

TRY with this, but the placeholder text color is not changing, stay with the gray. Bootstrap 3 doesn't have this issue. thanks!!

input::-webkit-input-placeholder {
color: red !important;
}
input::-moz-placeholder {
color: red !important;
}
input:-moz-placeholder { /* Older versions of Firefox */
color: red !important;
}
input:-ms-input-placeholder {
color: red !important;
}

css v4

Most helpful comment

If you are not a fan of forcing things with !important just do:

.form-control::-webkit-input-placeholder {
  color: #C0C0C0;
}

This worked for me. Keep in mind you need to add the other vendors to this code.

All 5 comments

I'm able to override it fine with latest from v4-dev branch: https://jsbin.com/layavul/edit?html,css,output.

ok. thanks!
Not sure why there is also an opacity on it too, so I just add the opacity: 1 !important, it works now.

Thank you, that was so helpful

If your using SASS you can override it by setting a value to $input-placeholder-color

If you are not a fan of forcing things with !important just do:

.form-control::-webkit-input-placeholder {
  color: #C0C0C0;
}

This worked for me. Keep in mind you need to add the other vendors to this code.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

steve-32a picture steve-32a  路  3Comments

ziyi2 picture ziyi2  路  3Comments

athimannil picture athimannil  路  3Comments

kamov picture kamov  路  3Comments

knownasilya picture knownasilya  路  3Comments