<!DOCTYPE html>
<html>
  <body>
    <fieldset style="display: inline">
      <legend>Legend<br>textstuffandall</legend>
      Text
    </fieldset>
  </body>
</html>