<!DOCTYPE html> <html> <head> <meta charset=utf-8> <style> div { padding: 5px; display: inline-block; } span { display: block; width: 2em; } span:nth-child(7) { background: red; height: 1em; } span:nth-child(6) { background: orange; height: 1.1em; } span:nth-child(5) { background: yellow; height: 1.3em; } span:nth-child(4) { background: green; height: 1.5em; } span:nth-child(3) { background: blue; height: 1.7em; } span:nth-child(2) { background: indigo; height: 1.9em; } span:nth-child(1) { background: violet; height: 2em; } </style> </head> <body> <p>All four columns should look the same: <div><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span></div> <div><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span></div> <div><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span></div> <div><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span></div>