Created
March 25, 2013 12:08
-
-
Save grahamlicence/5236704 to your computer and use it in GitHub Desktop.
Style placeholder text differently from input text
This file contains 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
/* | |
article: http://blog.grahamlicence.co.uk/post/Styling-input-placeholder-CSS-to-differ-from-input.aspx | |
Note, when adding these styles they must be implemented seperately as the following not work in either browsers | |
*/ | |
/* Chrome */ | |
input::-webkit-input-placeholder { | |
font-style: italic; | |
} | |
/* Firefox < 19 */ | |
input:-moz-placeholder { | |
font-style: italic; | |
} | |
/* Firefox 19 onwards */ | |
input::-moz-placeholder { | |
font-style: italic; | |
} | |
/* IE10 */ | |
input:-ms-input-placeholder { | |
font-style: italic; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment