Responsive Wordpress table - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table Responsive

Description

Responsive Wordpress table

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">
.nav {<!-- w  ww  . j  av  a  2s .c  o  m-->
   width:100%;
   margin:0 auto;
   padding:0;
   list-style:none;
}

.nav li {
   float:left;
}

.nav li a {
   display:inline-block;
   margin:11px;
   padding:11px;
   background:Chartreuse;
}

.cf:before,
.cf:after {
   content:" ";
   display:table;
}

.cf:after {
   clear:both;
}

.cf {
   *zoom:2;
}

@media all and (max-width: 500px)  {
   .nav li {
      width:100%;
      float:none;
   }
   
   .nav li a {
      display:block;
      margin:11px;
      padding:11px;
   }

}
</style> 
 </head> 
 <body> 
  <ul class="nav cf"> 
   <li> <a href="#">Lorem ips</a> </li> 
   <li> <a href="#">Lorem ips</a> </li> 
   <li> <a href="#">Lorem ips</a> </li> 
   <li> <a href="#">Lorem ips</a> </li> 
   <li> <a href="#">Lorem ips</a> </li> 
  </ul>  
 </body>
</html>

Related Tutorials