legend-position-relative.html (487B)
1 <!DOCTYPE html> 2 <title>legend position: relative</title> 3 <link rel=match href=legend-position-relative-ref.html> 4 <style> 5 fieldset { border: 100px solid lime; width: 200px; padding: 0; margin: 0 } 6 legend { position: relative; left: 100px; width: 100px; height: 100px; padding: 0 } 7 .behind { position: absolute; left: 208px; width: 100px; height: 100px; background: red; z-index: -1 } 8 </style> 9 <p>There should be no red.</p> 10 <div class=behind></div> 11 <fieldset><legend></legend></fieldset>