Is it possible to rotate text by 90° (clockwise or counter-clockwise) using only CSS and compatible with IE6+, Firefox 2 and Opera?
A:
The BasicImage filter in IE can do that: http://msdn.microsoft.com/en-us/library/ms532972%28VS.85%29.aspx
lod3n
2009-09-22 23:20:05
pretty sure that's not compatible with Firefox 2 or Opera
Colin Coghill
2009-09-23 00:06:01
The original version of the question only specified IE6 and later.
lod3n
2009-09-23 00:17:02
@colin.coghill: its still a valid answer, just not a complete answer. On firefox and webkit is easier. Opera is tougher.
voyager
2009-09-23 00:58:52
+2
A:
.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%;
/* IE support should be added with BasicImage and scripting I think*/
}
voyager
2009-09-22 23:24:17