Create three column layout with UL - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:3 Column

Description

Create three column layout with UL

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">

.test {<!--from   w  ww  . j  av  a2 s  . c  o m-->
   position: relative;
   height: auto;
   margin: 0 12%;
   background-color: transparent;
   display: flex;
}
.test-wrap {
   width: 100%;
   list-style: none;
   padding: 0;
   margin: 0;
   font-size: 0;
   display: flex;
   justify-content: space-between;
   flex-wrap: wrap;
}
.test-inner {
   position: relative;
   height: 100%;
   width: 31%;
   list-style: none;
   display: inline-block;
   border-style: solid;
   border-width: 0;
   border-color: transparent;
   margin: 0 0 150px;
   padding-bottom: 18%;
   background-color: #666;
}


      </style> 
 </head> 
 <body> 
  <div class="test"> 
   <ul class="test-wrap"> 
    <li class="test-inner"></li> 
    <li class="test-inner"></li> 
    <li class="test-inner"></li> 
   </ul> 
  </div>  
 </body>
</html>

Related Tutorials