![]() | |
![]() |
| | Thread Tools | Display Modes |
#11
| |||
| |||
|
|
On 2008-06-29, Jukka K. Korpela <jkorpela (AT) cs (DOT) tut.fi> wrote: [...] .foo { display: block; overflow: hidden; /* to make it a BFC */ } input[type="text"] { width: 100%; } input[type="button"] { float: right; } [...] b) on IE 7, it causes the right border of the input box hit the button; this looks odd and puzzling I suppose a small margin on the input box might solve that problem. |
#12
| |||
| |||
|
|
Scripsit Ben C: On 2008-06-29, Jukka K. Korpela <jkorpela (AT) cs (DOT) tut.fi> wrote: [...] .foo { display: block; overflow: hidden; /* to make it a BFC */ } input[type="text"] { width: 100%; } input[type="button"] { float: right; } [...] b) on IE 7, it causes the right border of the input box hit the button; this looks odd and puzzling I suppose a small margin on the input box might solve that problem. Well, how much margin can you have if you have 100% width? |
|
On IE 7, setting a margin does not seem to have any effect. |
|
(If you set left margin for the button, the right border of the text input box magically disappears.) |
![]() |
| Thread Tools | |
| Display Modes | |
| |