fit HTML table row to its content - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table Row

Description

fit HTML table row to its content

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">
html, body {
   width:100%;
   height:100%;
}

table {<!--  w w w . j av a  2  s  .c o m-->
   border:2px solid Chartreuse;
   width:100%;
}

div {
   background-color:yellow;
}
</style> 
 </head> 
 <body> 
  <table> 
   <tbody> 
    <tr> 
     <td colspan="3" align="center" valign="top" style="background-color: #eeeeee;"> 
      <div class="sitemap">
        Lorem ipsum 
       <ul>
         Lorem 
       </ul> 
      </div> </td> 
    </tr> 
   </tbody> 
  </table>  
 </body>
</html>

Related Tutorials