1193519-sideways-lr-3.html 634 B

12345678910111213141516171819202122
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset=utf-8>
  5. <style>
  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; }
  15. </style>
  16. </head>
  17. <body>
  18. <div><span>one</span> <span>two</span> <span>three</span> <span>four</span>
  19. <span>five</span> <span>six</span> <span>seven</span></div>