Skip to content

Commit

Permalink
Align textarea with text-top. Improves readability and fixes FF3/4 od…
Browse files Browse the repository at this point in the history
…d 'baseline' alignment
  • Loading branch information
necolas committed May 5, 2011
1 parent 9f821f0 commit e58552d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions normalize.css
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ input,
select,
textarea {
margin: 0; /* 1 */
vertical-align: baseline; /* 2 */
vertical-align: baseline; /* 2 */
}

/*
Expand All @@ -270,14 +270,20 @@ input::-moz-focus-inner {
}

/*
* 1.
* Disable default vertical scrollbar for <textarea> element
* Fixes scrollbar displayed oddly in IE6/7/8/9
* 2.
* Align <textarea> with text-top when inline
* Improves readability and fixes FF3/4 failure to align with baseline
*/

textarea {
overflow: auto;
overflow: auto; /* 1 */
vertical-align: text-top; /* 2 */
}


/*
* Define box sizing for <input> <select> <textarea> element
* Addresses box sizing not supported in IE6/7
Expand Down

0 comments on commit e58552d

Please sign in to comment.