Forum How do I...?

Rotate a Div

jbahnick
Using ASP.NET 2.0 and Prince 6.0 or 7.1 (have both). I have created a composite control that contains a GridView, a custom horizontal table control (renders as an HTML table), and other labels. The control needs to be displayed in a landscape fashion in a report that is printing in a portrait style. Is there a way through Prince CSS, or any other means, that I can rotate the Div that contains my control 90 degrees in order to give it that landscape appearance? I do not wish to print the entire report in landscape.

Thanks in advance for any suggestions.
mikeday
At the moment it is only possible to make the entire page landscape, you can't mix portrait and landscape orientation on the same page. When we add support for CSS3 Transforms or the SVG foreignObject element then it will be possible to rotate arbitrary chunks of HTML.
mikeday
Prince 8.1 is now available, with support for CSS3 Transforms! These can be used to rotate content by 90 degrees.