Is it possible to rotate text by 90° (clockwise or counter-clockwise) using only CSS and compatible with IE6+, Firefox 2 and Opera?
Asked
Active
Viewed 6,706 times
0
-
duplicate of http://stackoverflow.com/questions/1080792/how-to-draw-vertical-text-with-css-cross-browser/ – Esteban Küber Sep 22 '09 at 23:25
2 Answers
4
How can I draw vertical text with CSS cross-browser?
.rot-neg-90 {
/* rotate -90 deg, not sure if a negative number is supported so I used 270 */
-moz-transform: rotate(270deg);
-moz-transform-origin: 50% 50%;
-webkit-transform: rotate(270deg);
-webkit-transform-origin: 50% 50%;
-o-transform: rotate(270deg);
-o-transform-origin: 50% 50%;
transform: rotate(270deg);
transform-origin: 50% 50%;
/* IE<9 */
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
}

Community
- 1
- 1

Esteban Küber
- 36,388
- 15
- 79
- 97
1
The BasicImage filter in IE can do that: http://msdn.microsoft.com/en-us/library/ms532972%28VS.85%29.aspx

lod3n
- 2,893
- 15
- 16
-
-
-
@colin.coghill: its still a valid answer, just not a complete answer. On firefox and webkit is easier. Opera is tougher. – Esteban Küber Sep 23 '09 at 00:58