Fieldset legend for inner table - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table

Description

Fieldset legend for inner table

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">
fieldset {<!--from  w w w .j  a va  2  s. co  m-->
   border:2px solid Chartreuse;
   padding:21px;
   border-radius:9px;
   background:yellow;
   padding:6px;
   vertical-align:top;
   font-size:12px;
}

.my-overflow {
   overflow-y:auto;
   height:51px;
   max-height:51px;
}
</style> 
 </head> 
 <body> 
  <fieldset> 
   <legend>Lorem </legend> 
   <div class="my-overflow"> 
    <table> 
     <tbody> 
      <tr> 
       <td>Lorem</td> 
      </tr> 
      <tr> 
       <td>Lorem</td> 
      </tr> 
      <tr> 
       <td>Lorem</td> 
      </tr> 
      <tr> 
       <td>Lorem</td> 
      </tr> 
      <tr> 
       <td>Lorem</td> 
      </tr> 
      <tr> 
       <td>Lorem</td> 
      </tr> 
     </tbody> 
    </table> 
   </div> 
  </fieldset>  
 </body>
</html>

Related Tutorials