HTML CSS examples for CSS Layout:Column Layout
Position stack of div in column
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> html, body { margin : 0; padding : 0; } .box{<!-- ww w. ja v a 2 s.co m--> border : 2px inset grey; border-radius : 6px; float : left; width : 30%; margin : 0 1.5%; box-sizing : border-box; } .boxTitle{ color : #FF6600; border : 2px inset grey; } </style> </head> <body> <div class="box"> <div class="boxTitle"> My title </div> <div class="boxContent"> My content </div> <div class="botBottom"> </div> </div> <div class="box"> <div class="boxTitle"> My second title </div> <div class="boxContent"> My second content </div> <div class="botBottom"> </div> </div> <div class="box"> <div class="boxTitle"> My second title </div> <div class="boxContent"> My second content </div> <div class="botBottom"> </div> </div> </body> </html>