The other day I came across the CSS
writing-mode property and must admit I've never used it, so I decided to see what we can do with it.
It's an awesome property that tells us how text should flow, horizontal, or vertical.
HTML Structure permalink
We are testing the three values we can use and a default benchmark text:
<p>This text is your basic pharagraph and flows naturally</p>
<p class="vertical-rl">This text goes Vertical from Right to Left</p>
<p class="vertical-lr">This text goes Vertical from Left to Right</p>
<p class="horizontal-tb">This text goes Horizontal from Top to Bottom</p>
CSS Writing Mode permalink
writing-mode can be used to define how a text should flow.
It comes with three possible options:
vertical-rl: Goes Vertical from Right to Left
vertical-lr: Goes Vertical from Left to Right
horizontal-tb: Goes Horizontal from Top to Bottom (Default)
The horizontal is the default, and what the normal value is.
This results in the following Codepen.
Browser Support permalink
Writing mode comes with relative good support, it's missing some IE features and Opera Mini (as many cool features).