Aligning a set of labels and values using table - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table

Description

Aligning a set of labels and values using table

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <style>
table {<!--from w  ww.ja  v a  2s. c o m-->
   font-family:arial, sans-serif;
   border-collapse:collapse;
   width:100%;
}

td {
   border:2px solid Chartreuse;
   text-align:left;
   padding:9px;
}
</style> 
 </head> 
 <body> 
  <table> 
   <tbody> 
    <tr> 
     <td>Name</td> 
     <td>John Doe</td> 
    </tr> 
    <tr> 
     <td>Age</td> 
     <td>30.30.30</td> 
    </tr> 
   </tbody> 
  </table>  
 </body>
</html>

Related Tutorials