1

Possible Duplicate:
How does uʍop-ǝpısdn text work?

How to make the text upside down while keep the left-right order?

Community
  • 1
  • 1
user198729
  • 61,774
  • 108
  • 250
  • 348

2 Answers2

4

Firefox / Webkit:

-webkit-transform: rotate(-90deg); 
-moz-transform: rotate(-90deg); 

IE:

filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
Ben Everard
  • 13,652
  • 14
  • 67
  • 96
loentar
  • 5,111
  • 1
  • 24
  • 25
0

Or, if you want a solution that works most places:

  .verticalText
  {
    -webkit-transform: rotate(-90deg);
    -moz-transform: rotate(-90deg);
    writing-mode: tb-rl;
    filter: flipv fliph;
  }

Ultimately I ended up using a HTML5 canvas to draw vertical text in non-IE browsers due to odd results from rotating text.

Edit: Somehow I only managed to copy part of my code. Added the rest.

Sparafusile
  • 4,696
  • 7
  • 34
  • 57