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
10
normalize.css
vendored
10
normalize.css
vendored
@ -244,7 +244,7 @@ input,
|
||||
select,
|
||||
textarea {
|
||||
margin: 0; /* 1 */
|
||||
vertical-align: baseline; /* 2 */
|
||||
vertical-align: baseline; /* 2 */
|
||||
}
|
||||
|
||||
/*
|
||||
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user