Skip to content
Browse files

Fixed IE label alignment issue

  • Loading branch information...
1 parent f2fa2ff commit 5b455fed7c044a97a2e72fd483887c3a9e526924 @Montoya Montoya committed
Showing with 4 additions and 2 deletions.
  1. +1 −1 blueprint/ie.css
  2. +3 −1 blueprint/src/ie.css
View
2 blueprint/ie.css
@@ -26,11 +26,11 @@ img {-ms-interpolation-mode:bicubic;}
fieldset {padding-top:0;}
legend {margin-top:-0.2em;margin-bottom:1em;margin-left:-0.5em;}
textarea {overflow:auto;}
+label {vertical-align:middle;position:relative;top:-0.25em;}
input.text, input.title, textarea {background-color:#fff;border:1px solid #bbb;}
input.text:focus, input.title:focus {border-color:#666;}
input.text, input.title, textarea, select {margin:0.5em 0;}
input.checkbox, input.radio {position:relative;top:.25em;}
form.inline div, form.inline p {vertical-align:middle;}
-form.inline label {position:relative;top:-0.25em;}
form.inline input.checkbox, form.inline input.radio, form.inline input.button, form.inline button {margin:0.5em 0;}
button, input.button {position:relative;top:0.25em;}
View
4 blueprint/src/ie.css
@@ -61,6 +61,9 @@ legend { margin-top:-0.2em; margin-bottom:1em; margin-left:-0.5em; }
/* Makes classic textareas in IE 6 resemble other browsers */
textarea { overflow:auto; }
+/* Makes labels behave correctly in IE 6 and 7 */
+label { vertical-align:middle; position:relative; top:-0.25em; }
+
/* Fixes rule that IE 6 ignores */
input.text, input.title, textarea { background-color:#fff; border:1px solid #bbb; }
input.text:focus, input.title:focus { border-color:#666; }
@@ -69,7 +72,6 @@ input.checkbox, input.radio { position:relative; top:.25em; }
/* Fixes alignment of inline form elements */
form.inline div, form.inline p { vertical-align:middle; }
-form.inline label { position:relative;top:-0.25em; }
form.inline input.checkbox, form.inline input.radio,
form.inline input.button, form.inline button {
margin:0.5em 0;

0 comments on commit 5b455fe

Please sign in to comment.
Something went wrong with that request. Please try again.