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?
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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With