Forum Moderators: not2easy

Message Too Old, No Replies

legend and fieldset problem in IE

         

thesheep

2:59 pm on Jun 24, 2004 (gmt 0)

10+ Year Member



fieldset { margin: 10px 0; padding: 0px; border: 1px solid #C2BF99; background-color: #E1E1D0; }

legend { font-size: 80%; color: black; padding: 0 0.5em; background-color: white; border: 1px solid #C2BF99; margin-left: 0.4em;}

This works fine in Firefox but in IE6 the background of the fieldset extends above it's top border to become level with the top of the legend box. What am I doing wrong? Thanks

DrDoc

3:01 pm on Jun 24, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



A familiar problem... I know Suzy posted a really neat solution to the problem. If only I can find it now...

SuzyUK

9:20 am on Jun 26, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi thesheep

the solution I came up with : posted here [webmasterworld.com] (msg#5) ~ may help and as far as I can remember it only requires an IE workaround.. but let us know

Suzy