CSS for disabled input field

If you only want to style the input fields of type=”text”:


input[type="text"]:disabled {
  background: #eee;
}

And if you want to style all the input fields.


input:disabled {
  background: #eee;
}