By default, the text within a legend does not wrap:
The following workaround will enable legend text to wrap:
<legend><span class="wrap">Legend Text</span></legend>
legend .wrap {
display: block; width: 100%; white-space: normal; /* allow long legends to wrap */
_width /**/: auto; /* correct problem in IE 5 by setting width back to auto */
}