Stacking <dt> and <dt> in a multiple column, multiple row <dl> - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Definition List

Description

Stacking <dt> and <dt> in a multiple column, multiple row <dl>

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">

table, tbody {
   display: block;
}
tr {<!--   ww w .j a v  a  2s .c o  m-->
   display: inline-block;
   width: 30%;
}
td, th {
   display: block;
}


      </style> 
 </head> 
 <body> 
  <table> 
   <tbody> 
    <tr> 
     <th>Latitude</th> 
     <td>50.0</td> 
    </tr> 
    <tr> 
     <th>Longitude</th> 
     <td>100.0</td> 
    </tr> 
    <tr> 
     <th>h (metres)</th> 
     <td>0.000</td> 
    </tr> 
    <tr> 
     <th>Vf (mm/y)</th> 
     <td>-6.4</td> 
    </tr> 
    <tr> 
     <th>V? (mm/y)</th> 
     <td>-15.3</td> 
    </tr> 
    <tr> 
     <th>Vh (mm/y)</th> 
     <td>-2.0</td> 
    </tr> 
   </tbody> 
  </table>  
 </body>
</html>

Related Tutorials