I have about 10 or more objects, with same width but different height. I want to put them like the below image, to fully cover the page. Here is what i've done but it doesn't work:
http://jsfiddle.net/mhmdshv/e0xvcgnw/
HTML:
<div id="book">
<div class="book" style="height:310px; width:200px">...</div>
<div class="book" style="height:100px; width:200px">...</div>
<div class="book" style="height:500px; width:200px">...</div>
<div class="book" style="height:400px; width:200px">...</div>
<div class="book" style="height:150px; width:200px">...</div>
<div class="book"style="height:200px; width:200px">...</div>
<div class="book" style="height:40px; width:200px">...</div>
CSS:
body{padding:25px;}
#book{text-align:center;outline:5px solid aqua;}
.book{
display:inline-block;
border:1px dotted silver;background-color:pink;margin:9px;text-align:center;
}
There is a gap between objects that don't have same height... i want it to be gone. Any ideas?
Thanks!