On 8/30/06, Gunlaug Sørtun <[EMAIL PROTECTED]> wrote:
> 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;
> }
> }
>
Thanks Georg,
It worked fine with the margin changed to -1em.
You also need to define a top margin on the <fieldset> to avoid
truncation of the legend.Now there's just the weird little IE quirk that the border of the fieldset stops 1 pixel before it touches the border of the legend. But I can live with that! -- Richard Grevers, New Plymouth, New Zealand Hat 1: Development Engineer, Webfarm Ltd. Hat 2: Dramatic Design www.dramatic.co.nz ______________________________________________________________________ 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/
