Lists column sorting - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Column Layout

Description

Lists column sorting

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 {<!--   w  ww  . j  a va2 s  .  c om-->
   clear: both;
   margin: 0px auto;
   padding: 10px 0px 0 0px;
   width: 450px;
   z-index: 9; 
}
ul li {
      background:#ededed;
      float:left;
      min-height:100px;
      width:50%;
      box-sizing
      :border-box;
      list-style: none;
      margin-bottom: 10px;
      padding: 0px;
}


      </style> 
 </head> 
 <body> 
  <ul> 
   <li>1</li> 
   <li>2</li> 
   <li> 3 <br> three </li> 
   <li>4</li> 
   <li>5</li> 
   <li>6</li> 
   <li>7</li> 
   <li>8</li> 
   <li> 9 <br> nine </li> 
   <li>10</li> 
  </ul>  
 </body>
</html>

Related Tutorials