Displaying table data into horizontal alignment - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table

Description

Displaying table data into horizontal alignment

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">
td {<!--from   w  ww . j  a va  2 s  .  c om-->
   padding:6px;
   border:2px dotted Chartreuse;
}

tr {
   display:inline-block;
}
</style> 
 </head> 
 <body> 
  <table> 
   <tbody> 
    <tr> 
     <td>L</td> 
    </tr> 
    <tr> 
     <td>L</td> 
    </tr> 
    <tr> 
     <td>L</td> 
    </tr> 
    <tr> 
     <td>L</td> 
    </tr> 
    <tr> 
     <td>L</td> 
    </tr> 
   </tbody> 
  </table>  
 </body>
</html>

Related Tutorials