<!DOCTYPE html> <style> body { writing-mode: vertical-lr; } .container { background: green; width: 16px; border: solid black 3px; height: 400px; margin: 0 16px; padding: 2px; } .large { width: 32px; } </style> There should be no red. <div class="container"></div> <div class="container"></div> <div class="container large"></div> <div class="container large"></div> <div class="container"></div> <div class="container"></div> <div class="container large"></div> <div class="container large"></div> <div class="container"></div> <div class="container"></div> <div class="container large"></div> <div class="container large"></div>