Skip to content

Instantly share code, notes, and snippets.

@krusty
Created October 5, 2012 13:56
Show Gist options
  • Save krusty/3839919 to your computer and use it in GitHub Desktop.
Save krusty/3839919 to your computer and use it in GitHub Desktop.
placeholder styles
<!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