How to create vertical text using only CSS?

Is it possible to create vertical text using only CSS compatible with IE6 +?

Vertically, I mean

F O O B A R 
+4
source share
4 answers

Edited: You can try the following:

 p { letter-spacing: 1000px; // more than width of parent word-wrap: break-word; // seems to work in at least Firefox and IE7+ } 

This seems to work in Firefox 3.5 and IE7 + (I don't have access to IE6 now). The only thing missing from this solution is an extra new line for the space, resulting in something like:

F
O
O
B
A
R

+7
source

Today this is not possible in the browser in an agnostic way. Wait for CSS3.

+2
source

This works in IE, but unfortunately not FF:

 .verticaltext { writing-mode: tb-rl; filter: fliph flipv; } 
+1
source

You can achieve something similar (at least in IE) with this CSS:

 .verticaltext { writing-mode: tb-rl; } 

But this will rotate the characters 90 degrees clockwise.

0
source

All Articles