Css table-cell on 2 rows - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table Cell

Description

Css table-cell on 2 rows

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 {<!--  ww  w  .  ja va2  s  .c o  m-->
   width:100%;
}

ul {
   padding:0;
   list-style-type:none
}

td {
   background-color:Chartreuse;
}

li {
   color:yellow;
   padding:6px 11px;
   text-align:center;
   width:100%;
   list-style:none;
}

td:nth-child(even) {
   background-color:blue;
}
</style> 
 </head> 
 <body> 
  <ul> 
  </ul> 
  <table> 
   <tbody> 
    <tr> 
     <td> <li>Lorem</li> </td> 
     <td> <li>Lorem </li> </td> 
     <td> <li>Lorem</li> </td> 
    </tr> 
    <tr> 
     <td> <li>Lorem </li> </td> 
     <td> <li>Lorem</li> </td> 
     <td> <li>Lorem</li> </td> 
    </tr> 
   </tbody> 
  </table>  
 </body>
</html>

Related Tutorials