Search code examples
cssflying-saucerrotatetransform

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?


Solution

  • 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