I've been struggling with a persistent issue and I'm determined to find a solution. My goal is to achieve the following design using css:
https://gyazo.com/c8ae39ebc4795027ba7c1067a08d3420
Currently, I have an uneven number of divs styled as follows:
.box{
background-color: grey;
float: left;
width: 33.33%;
border: 1px solid black;
}
I've been trying to restyle the middle divs using nth-child but it's causing them to appear in strange orders and it all feels very chaotic. Is there a simpler solution?
Here's a Codepen example of what I'm attempting to achieve:
http://codepen.io/anon/pen/RrqNzM
Any help is greatly appreciated. Thank you.