HTML CSS examples for CSS Widget:Div
Align the second row based on tallest DIV
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .boxes {<!--from w ww .j a v a2 s . c om--> display:inline-block; vertical-align:top; } .box1 { width:151px; height:100px; background-color:Chartreuse; } .box2 { width:131px; height:201px; background-color:yellow; } .box3 { width:171px; height:191px; background-color:blue; } .box4 { width:201px; height:201px; background-color:pink; } .box5 { width:100px; height:100px; background-color:OrangeRed; } </style> </head> <body> <div class="box1 boxes"></div> <div class="box2 boxes"></div> <div class="box3 boxes"></div> <div class="box4 boxes"></div> <div class="box5 boxes"></div> </body> </html>