Styling the placeholder attribute

Github Page

A quick demo of how to style the placeholder attribute.

Example


Code

Markup
<input type="text" placeholder="Add Your Full Name">
CSS
::-webkit-input-placeholder {
  opacity: 1;
  color: red;
}

:-moz-placeholder {
  opacity: 1;
  color: red;
}

::-moz-placeholder {
  opacity: 1;
  color: red;
}

:-ms-input-placeholder {
  opacity: 1;
  color: red;
}

Github Page