Taken from here.
<div >こんいちわ 「1234」 10月2014年</div>
div {
-ms-writing-mode: tb-rl; /* old syntax. IE */
-webkit-writing-mode: vertical-rl;
-moz-writing-mode: vertical-rl;
-ms-writing-mode: vertical-rl;
writing-mode: vertical-rl; /* new syntax */
}
UPDATE
After some more experimentation, I realize that specifying text-direction
is not a good idea.
Chrome on linux, displays halfwidth latin characters sideways, but full-width characters upright.
In the example, the 1234
is rotated sideways, but the 10月2014年
is shown vertically. Not specifying direction lets the browser do 'The Right Thing'.
http://jsfiddle.net/X78vC/3/
Chrome doesn't seem to let you do some interesting things, like squish 2 half-width numerals on to a single line - I wonder if ligatures could solve that at some point.
Some good examples of vertical writing in Japanese are given here.