Add vertical-align:baseline to form elements

This commit is contained in:
necolas 2011-05-05 20:41:20 +01:00
parent 6ed1d6f7e5
commit 9f821f06e3

8
normalize.css vendored
View File

@ -230,15 +230,21 @@ legend {
} }
/* /*
* 1.
* Remove margin from form elements * Remove margin from form elements
* Fixes margin displayed oddly in C10 S5 * Fixes margin displayed oddly in C10 S5
* 2.
* Define vertical-align for form elements
* Fixes alignment in IE and <textarea> alignment in FF3/4
*
*/ */
button, button,
input, input,
select, select,
textarea { textarea {
margin: 0; margin: 0; /* 1 */
vertical-align: baseline; /* 2 */
} }
/* /*