6 div { border:
1px solid silver; padding:
5px; writing-mode: sideways-lr; }
7 span { padding:
5px; color: transparent; }
8 span:nth-child(
1) { background: red; }
9 span:nth-child(
2) { background: orange; }
10 span:nth-child(
3) { background: yellow; }
11 span:nth-child(
4) { background: green; }
12 span:nth-child(
5) { background: blue; }
13 span:nth-child(
6) { background: indigo; }
14 span:nth-child(
7) { background: violet; }
20 <div><span>one
</span> <span>two
</span> <span>three
</span> <span>four
</span>
21 <span>five
</span> <span>six
</span> <span>seven
</span></div>