Working on a dynamic layout using divs with display:inline-block to accommodate varying content heights. However, the displayed order of my divs is not as expected.
1357
2468
I would like them to display as:
1234
5678
My code snippet:
article{
-moz-column-width: 13em;
-webkit-column-width: 13em;
-moz-column-gap: 1em;
-webkit-column-gap: 1em;
}
section{
display: inline-block;
margin: 0.25rem;
padding: 1rem;
width: 100%;
background: #efefef;
}
Link to my JSFiddle