You could use flexbox, it's awesome but does have a learning curve, or you could just use CSS's display: table property on the parent <div> and display: table-cell on the children <div> containers. That way, when you get to a breakpoint where you need to separate the table cells, you can just switch the display value to block or inline-block in the media query. I've used this technique many times.