Tryit Editor v2.3

Edit This Code:
<!DOCTYPE html> <html> <head> <style> #main { width: 70px; height: 300px; border: 1px solid #c3c3c3; display: -webkit-flex; /* Safari */ -webkit-flex-flow: row wrap; /* Safari 6.1+ */ -webkit-align-content: space-around; /* Safari 7.0+ */ display: flex; flex-flow: row wrap; align-content: space-around; } #main div { width: 70px; height: 70px; } </style> </head> <body> <div id="main"> <div style="background-color:coral;"></div> <div style="background-color:lightblue;"></div> <div style="background-color:pink;"></div> </div> <p><b>Note:</b> Internet Explorer 10 and earlier versions do not support the align-content property.</p> <p><b>Note:</b> Safari 7.0 (and newer) supports an alternative, the -webkit-align-content property.</p> </body> <!-- Mirrored from www.w3schools.com/cssref/tryit.asp?filename=trycss3_align-content by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 07:49:51 GMT --> </html>
Result:
Try it Yourself - © w3schools.com