HTML CSS examples for CSS Layout:Box
Equalizing boxes with same space vertically but different Height
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .wrapper {<!--from w w w . j a va2s . c o m--> padding:0px } .content { width:100%; } .item { background:blue; color:Chartreuse; padding:31px; width:100px; list-style:none; display:inline-block; vertical-align:top; margin-top:11px } </style> </head> <body> <div class="wrapper"> <ul class="content"> <li class="item">Lorem ipsum dolor sit amet, con</li> <li class="item">Lorem ipsum dolor sit amet, consectetur adipis</li> <li class="item">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morb</li> <li class="item">Lorem ipsum dolor sit amet, con</li> <li class="item">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ullamcorper m</li> </ul> </div> </body> </html>