View Full Version : <fieldset>/<legend> look

02-05-2004, 06:47 PM
Just an exercise in achieving the <fieldset>/<legend> appearance with semantically appropriate elements:
... in case anyone cares :thumbsup:

02-06-2004, 05:06 AM
looks good, and it works in all font sizes in mozilla. (not ie though, but thats not a surprise)

02-06-2004, 01:22 PM
Does work in IE6
For earlier IE (5.5) box model adjustments need to be made.

02-07-2004, 08:32 AM
Interesting - the look but not the semantics - contrasts well with the semantics but not the look that I've taken to for forms:

fieldset { border:none; }


02-07-2004, 02:50 PM
Actually I did it, because someone at usenet was wondering if that was ok to use <fieldset><legend> pair outside the form. They liked the appearance for things like blogs (date in the legend) and news articles (title in the legend), so I showed that the same appearance can be achieved with the regular markup.

02-08-2004, 10:19 AM
Yeah I figured as much. I take it then, you don't think it's okay to use fieldset for non-form content?