Created
October 5, 2012 13:56
-
-
Save krusty/3839919 to your computer and use it in GitHub Desktop.
placeholder styles
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
<!DOCTYPE html> | |
<html><head> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8"> | |
<title>Placeholder</title> | |
<style type="text/css" media="screen"> | |
input { | |
font-weight: bolder; | |
color: red; | |
} | |
#test { | |
color: blue; | |
} | |
::-webkit-input-placeholder { | |
color: green; | |
} | |
:-moz-placeholder { | |
color: green; | |
} | |
:-ms-input-placeholder { | |
color: green; | |
} | |
</style> | |
<body> | |
<form action="placeholder_submit" method="get" accept-charset="utf-8"> | |
<input id="test" placeholder="placeholder" type="text"> | |
</form> | |
</body></html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment