Created
February 14, 2017 14:14
-
-
Save wernersmit/17079402d8b91489005e726970c166b7 to your computer and use it in GitHub Desktop.
Center Align Input fields placeholder text
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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