CSS space display: table-cell - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table Cell

Description

CSS space display: table-cell

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">
ul li {
   display:inline-block;
   background:red;
   height:21px;
   width:21px;
}
</style> <!--   w w w.  j  a v  a  2  s .co m-->
 </head> 
 <body> 
  <ul class="test"> 
   <li>Lo</li> 
   <li>Lor</li> 
  </ul> 
  <ul class="test"> 
   <li>Lo</li> 
   <li>Lor</li> 
  </ul>  
 </body>
</html>

Related Tutorials