428423-1b.html (339B)
1 <html> 2 <head><style> 3 fieldset, legend { margin: 0px; padding: 0px; } 4 fieldset { 5 width: 20em; 6 text-align: right; 7 border: 0px; 8 } 9 .orange { background: orange } 10 </style></head> 11 <body> 12 The orange box should only be as wide as its text. 13 <fieldset> 14 <legend class="orange">foo</legend> 15 </fieldset> 16 </body> 17 </html>