Legend inside Fiedset

Is it possible to style the Legend so it is completely inside of the parent Fieldset, and has no line around it?

(When I tried this in the past, I couldn’t get it to work.)

Here is an example of what I want…

The goal is to have a semantically correct Form, while maintaining the look-and-feel I want.



Try adjusting margin in this thread:

An easy way is to ditch the default border and place the border and background either on the form or on a div—whichever is more appropriate in the circumstances.