Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to rotate text using CSS 2.1?

I am using FlyingSaucer to generate an image from HTML and I am restricted to CSS 2.1. I would like to use CSS to rotate text in a <div> but these rotate styles are only supported on CSS 3:

-o-transform: rotate(-15deg);
-ms-transform: rotate(-15deg);
-webkit-transform: rotate(-15deg);
transform: rotate(-15deg);

I cannot use Javascript, only HTML and CSS.

Is there any way to rotate text using CSS 2.1?

like image 830
Scott Avatar asked Dec 12 '14 21:12

Scott


2 Answers

That's not possible. Flying Saucer only works with CSS 2.1 and some extensions properties as per documentation: https://flyingsaucerproject.github.io/flyingsaucer/r8/guide/users-guide-R8.html#xil_43

like image 161
rfceron Avatar answered Oct 13 '22 01:10

rfceron


No. There are other technologies (SVG, Flash, …) but if you are restricted to CSS 2.1 (which is more than ten years old) I guess you also can't use any other technology of the current age.

like image 44
feeela Avatar answered Oct 13 '22 00:10

feeela