I have three equally divided vertical divs having many divs inside each of the vertical divs as follows.
I want the inner divs to wrap to a 2 column or 1 column grid (depending on browser height width) with each divs height width increasing on browser resize. Presently the divs wrap around but still some extra space is left and I want the inner divs to increase in size with browser size decreasing filling that extra space.
Here is the image when i resize the browser
My HTML is as follows
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<style type="text/css">
body {
height: 100%;
font-size: 100%;
}
.main {
border: 2px solid black;
position: absolute !important;
width: 100% !important;
height: 100% !important;
left: 0px !important;
top: 0px !important;
z-index: 1 !important;
box-sizing: border-box;
-moz-box-sizing: border-box;
overflow: hidden;
}
.verticalReports {
width: 32%;
border: 1px solid black;
height: 100%;
float: left;
overflow:hidden;
}
.verticalTiles {
width: 30%;
height: 20%;
background-color: #e0d8ed;
margin-left: 10px;
margin-top: 13px;
float: left;
}
</style>
</head>
<body>
<div class="main">
<div class="verticalReports">
<div class="verticalTiles"></div>
<div class="verticalTiles"></div>
<div class="verticalTiles"></div>
<div class="verticalTiles"></div>
<div class="verticalTiles"></div>
<div class="verticalTiles"></div>
<div class="verticalTiles"></div>
<div class="verticalTiles"></div>
<div class="verticalTiles"></div>
<div class="verticalTiles"></div>
<div class="verticalTiles"></div>
<div class="verticalTiles"></div>
<div class="verticalTiles"></div>
</div>
<div class="verticalReports">
<div class="verticalTiles"></div>
<div class="verticalTiles"></div>
<div class="verticalTiles"></div>
<div class="verticalTiles"></div>
<div class="verticalTiles"></div>
<div class="verticalTiles"></div>
<div class="verticalTiles"></div>
<div class="verticalTiles"></div>
<div class="verticalTiles"></div>
<div class="verticalTiles"></div>
<div class="verticalTiles"></div>
<div class="verticalTiles"></div>
<div class="verticalTiles"></div>
</div>
<div class="verticalReports">
<div class="verticalTiles"></div>
<div class="verticalTiles"></div>
<div class="verticalTiles"></div>
<div class="verticalTiles"></div>
<div class="verticalTiles"></div>
<div class="verticalTiles"></div>
<div class="verticalTiles"></div>
<div class="verticalTiles"></div>
<div class="verticalTiles"></div>
<div class="verticalTiles"></div>
<div class="verticalTiles"></div>
<div class="verticalTiles"></div>
<div class="verticalTiles"></div>
</div>
</div>
</body>
</html>