开发者

CSS3 text rotate

开发者 https://www.devze.com 2023-04-12 18:56 出处:网络
How do I acheive the following using CSS3 text-rotate I am looki开发者_如何学JAVAng at using 2 floated elements (one just with the text and other for right panel) with a container..

How do I acheive the following using CSS3 text-rotate

I am looki开发者_如何学JAVAng at using 2 floated elements (one just with the text and other for right panel) with a container..

CSS3 text rotate

Any workaround to make it work in IE8 would also be appreciated..


Use

-webkit-transform:rotate(-90deg);
-moz-transform:rotate(-90deg);
-ms-transform:rotate(-90deg);
-o-transform:rotate(-90deg);
transform:rotate(-90deg);
filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=3);

on the element. (Might be 90, not -90 – you'll have to check!). The IE one just takes values of 1,2,3,4 representing each 90˚ rotation.


check this http://snook.ca/archives/html_and_css/css-text-rotation

write like this

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

& for IE you can use filter for this

filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);

check the fiddle http://jsfiddle.net/sandeep/w7vZd/12/

& for IE8 you can conditional comment or IE css hacks.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号