There seems to be an issue with the shadow of the Div blocks not appearing correctly. Instead, the shadows are showing up side by side on the last block. Even though I have set the z-index and position to relative, it's still not functioning as anticipated.
Edit: My goal is to have the blocks aligned next to each other and responsive.
.main {
padding-top: 10px;
-moz-column-count: 4;
-moz-column-gap: 0;
-webkit-column-count: 4;
-webkit-column-gap: 0;
column-count: 4;
column-gap: 0;
}
.main .columnBlock {
background-color: #fff;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
border-radius: 4px;
margin: 0 4px 8px 8px;
-webkit-box-shadow: 0px 2px #d4d6d8;
-moz-box-shadow: 0px 2px #d4d6d8;
box-shadow: 0px 2px #d4d6d8;
position: relative;
z-index: 999;
}
.column {
display: inline-block;
min-width: 140px;
width: 22%;
vertical-align: top;
padding-top: 8px;
}
.column ul {
margin-top: 4px;
margin-bottom: 1em;
}
.column ul {
display: inline-block;
width: 100%;
vertical-align: baseline;
height: 100%;
}
@media screen and (max-device-width: 9999px) {
.column {
width: 100%;
height: auto;
float: none;
}
}
<div class="main" style="width: 100%;">
<div class="columnBlock">
<div class="column">
<ul>
<li><a href="">Data 1</a></li>
<li><a href="">Data 2</a></li>
<li><a href="">Data 3</a></li>
</ul>
</div>
</div>
<!-- .columnBlock -->
<div class="columnBlock">
<div class="column">
<ul>
<li><a href="">Data 1</a></li>
<li><a href="">Data 2</a></li>
<li><a href="">Data 3</a></li>
</ul>
</div>
</div>
<!-- .columnBlock -->
</div>
<!-- .main -->