Divide divs over 3 columns - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:3 Column

Description

Divide divs over 3 columns

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

.block13{<!-- www  . j av a 2  s.c  om-->
   width: 25%;
   min-width: 400px;
   background-color:#ffffff;
   padding:10px;
   border-bottom:2px; border-top:1px; border-left:1px; border-right: 1px;
   border-bottom-left-radius: 5px; border-bottom-right-radius:5px; ; border-top-left-radius:0px ; border-top-right-radius: 0px;
   float: left;
   border-style: solid;
   border-color: #b1b1b1;
   margin-left:4%;
   margin-top:10px;
}


      </style> 
 </head> 
 <body> 
  <div class="main"> 
   <div class="block13"> 
    <h3>header</h3> 
    <p>tekst</p> 
   </div> 
   <div class="block13"> 
    <h3>header</h3> 
    <p> tekst <br> test <br> higher </p> 
   </div> 
   <div class="block13"> 
    <h3>header</h3> 
    <p>tekst</p> 
   </div> 
   <div class="block13"> 
    <h3>header</h3> 
    <p>tekst</p> 
   </div> 
   <div class="block13"> 
    <h3>header</h3> 
    <p> tekst <br> test <br> </p> 
   </div> 
   <div class="block13"> 
    <h3>header</h3> 
    <p>tekst</p> 
   </div> 
   <div class="block13"> 
    <h3>header</h3> 
    <p> tekst <br> test <br> </p> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials