Skip to content

Instantly share code, notes, and snippets.

@wernersmit
Created February 14, 2017 14:14
Show Gist options
  • Save wernersmit/17079402d8b91489005e726970c166b7 to your computer and use it in GitHub Desktop.
Save wernersmit/17079402d8b91489005e726970c166b7 to your computer and use it in GitHub Desktop.
Center Align Input fields placeholder text
/*
* Source: http://stackoverflow.com/a/15378182
*/
::-webkit-input-placeholder {
text-align: center;
}
:-moz-placeholder { /* Firefox 18- */
text-align: center;
}
::-moz-placeholder { /* Firefox 19+ */
text-align: center;
}
:-ms-input-placeholder {
text-align: center;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment