Commit 526d3883 authored by Pete Hopkins's avatar Pete Hopkins

Compensates for IE7 first-child-input-inheriting-hasLayout-parents-margins bug...

Compensates for IE7 first-child-input-inheriting-hasLayout-parents-margins bug for appended text form element
parent 841e386d
...@@ -440,6 +440,15 @@ select:focus:required:invalid { ...@@ -440,6 +440,15 @@ select:focus:required:invalid {
margin-left: -1px; margin-left: -1px;
.border-radius(0 3px 3px 0); .border-radius(0 3px 3px 0);
} }
input:first-child {
// In IE7, having a hasLayout container (from clearfix's zoom:1) can make the first input
// inherit the sum of its ancestors' margins.
*margin-left: -160px;
&+.add-on {
*margin-left: -21px;
}
}
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment