mirror of
https://github.com/necolas/normalize.css.git
synced 2024-12-25 15:14:19 +00:00
Align textarea with text-top. Improves readability and fixes FF3/4 odd 'baseline' alignment
This commit is contained in:
parent
9f821f06e3
commit
e58552dbc0
8
normalize.css
vendored
8
normalize.css
vendored
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user