Re: [css-d] input margin bug (IE7)

2006-12-19 Thread Ingo Chao
Alastair Campbell wrote:
 A friend came across a strange bug that must have come up before, but
 I can't find anything on it.
 
 If you have an input in a container, both have a width, and the
 container has a left-margin, IE7 puts it out of the container. It was
 quite a complex site, so I put a cut down version up here:
 http://alastairc.ac/testing/IE7_bugs/funk-button_bug.html
 
 It doesn't seem to be a hasLayout issue, is there another type of
 issue I've missed?
 
 Kind regards,
 
 -Alastair
 
 (On digest, please CC me if you reply.)


Strange. Seems to be a similar problem in IE6, but the wrapper is 
expanding there.

Separating the input from its parent ( with a solid span) seems to help:

div class=input-button
!--[if IE]span style=zoom:1/span![endif]--
input type=submit name=submit class=submit value=Send /
/div

but how ugly that would be.

Regards,

Ingo

-- 
http://www.satzansatz.de/css.html
__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] input margin bug (IE7)

2006-12-19 Thread Alastair Campbell
On 12/19/06, Ingo Chao [EMAIL PROTECTED] wrote:
 Strange. Seems to be a similar problem in IE6, but the wrapper is
 expanding there.

I'm glad it wasn't something common that I had just missed before, but
it is very strange that this hasn't come up before, isn't it?
Especially since it affects IE6 (in a different way) as well.

We've gone with removing some of the styles from IE7 for now, and
since it isn't an easy hasLayout issue it doesn't seem to have a
CSS-only fix.

Thanks Ingo,

-Alastair
__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/