Richard Grevers wrote:
> I can't find this one in the wiki...
> 
> With default browser positioning of <legend> (straddling the border) 
> IE6 seems to paint the background of <fieldset> above its border, up 
> to the top of the legend.

It's not actually a background bug, but rather an offset built into the
entire construction in IE/win. I have studied it, but not needed a fix
often enough to bother about all the details and documenting it.

> Are there any workarounds for this (other than forgoing either the 
> border or the background colour?

I've found the following to work quite well in IE6...

@media screen {
* html legend {
margin: -24px 0 0 0;
position: fixed;
line-height: 1.4;
}
}

...which will simply correct, or counter-act, the margin on legend
that's causing the problem in IE. Values must of course be tuned
slightly to the actual case.

Note that this "fix" also make use of the fact that IE6 doesn't properly
understand 'position: fixed', so the the entire hack is needed to make
sure no other browser ever see this "fix".

regards
        Georg
-- 
http://www.gunlaug.no
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- 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/

Reply via email to