Align textarea with text-top. Improves readability and fixes FF3/4 odd 'baseline' alignment

This commit is contained in:
necolas 2011-05-05 20:49:19 +01:00
parent 9f821f06e3
commit e58552dbc0

8
normalize.css vendored
View File

@ -270,14 +270,20 @@ input::-moz-focus-inner {
} }
/* /*
* 1.
* Disable default vertical scrollbar for <textarea> element * Disable default vertical scrollbar for <textarea> element
* Fixes scrollbar displayed oddly in IE6/7/8/9 * 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 { textarea {
overflow: auto; overflow: auto; /* 1 */
vertical-align: text-top; /* 2 */
} }
/* /*
* Define box sizing for <input> <select> <textarea> element * Define box sizing for <input> <select> <textarea> element
* Addresses box sizing not supported in IE6/7 * Addresses box sizing not supported in IE6/7