When I add a border to fieldset element and then drag the legend down to work as a heading of sorts, the gap in the fieldset remains.
Is there a way to have the entire border, without adding a wrapper div and setting the border on that?
Example

CSS
fieldset legend {
position: relative;
bottom: -40px;
background: transparent;
}
Tested in IE7/IE8 and recent versions of Firefox, Chrome, Safari, Opera.
It looks the same in all of them, with the exception that IE7 is adding a little space on the left.
I had to add an innocent little wrapper
span.http://jsfiddle.net/thirtydot/ErZEj/
HTML:
CSS: