Skip to content

Commit

Permalink
Added styled placeholder text for WebKit.
Browse files Browse the repository at this point in the history
  • Loading branch information
nathansmith committed Aug 1, 2010
1 parent ae3b374 commit 6df24ff
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions assets/stylesheets/form.css
Expand Up @@ -5,6 +5,10 @@
-- Buttons are unaffected. Native OS style.
*/

::-webkit-input-placeholder {
color: #000;
}

input,
button,
select,
Expand Down
2 changes: 1 addition & 1 deletion dark.html
Expand Up @@ -235,7 +235,7 @@ <h1>
Textarea
</label>
<br />
<textarea id="textarea" name="textarea" rows="3"></textarea>
<textarea id="textarea" name="textarea" rows="3" placeholder="This is an example of HTML5 placeholder text."></textarea>
</p>
<table class="horiz">
<tr>
Expand Down
4 changes: 2 additions & 2 deletions light.html
Expand Up @@ -235,7 +235,7 @@ <h1>
Textarea
</label>
<br />
<textarea id="textarea" name="textarea" rows="3"></textarea>
<textarea id="textarea" name="textarea" rows="3" placeholder="This is an example of HTML5 placeholder text."></textarea>
</p>
<table class="horiz">
<tr>
Expand All @@ -258,7 +258,7 @@ <h1>
Text
</label>
<br />
<input type="text" id="text" name="text" />
<input type="text" id="text" name="text" placeholder="Example placeholder" />
</td>
</tr>
<tr>
Expand Down
2 changes: 1 addition & 1 deletion mixed.html
Expand Up @@ -235,7 +235,7 @@ <h1>
Textarea
</label>
<br />
<textarea id="textarea" name="textarea" rows="3"></textarea>
<textarea id="textarea" name="textarea" rows="3" placeholder="This is an example of HTML5 placeholder text."></textarea>
</p>
<table class="horiz">
<tr>
Expand Down

0 comments on commit 6df24ff

Please sign in to comment.