Display table row as list - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table Row

Description

Display table row as list

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 {
   margin:0;
   padding:0;
   width:100%;
   background:white;
}

.table {<!-- w  ww.  ja va 2 s. co  m-->
   display:table;
   width:100%;
}

.cell {
   display:table-cell;
   border:2px solid Chartreuse;
}

@media (max-width: 767px)  {
   .table, .cell {
      display:block;
   }

}
</style> 
 </head> 
 <body> 
  <div class="table"> 
   <div class="cell">
     Lorem ip 
   </div> 
   <div class="cell">
     Lorem ip 
   </div> 
   <div class="cell">
     Lorem ip 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials