Forum How do I...?

How to rotate text inside margin

thomasdumm
Hi Michael

I looked through the forum but I did not find a solution for the following problem:

I would like to rotate text in the margin by 90deg. I get the impression that I can only rotate the margin but not the text inside. I did not find out how to solve the problem with "float" either, as I need to place the rotated text into the left margin on left pages and into the right margin on right pages.

Is there a solution to the problem?

I attach you a print-screen showing two pages with rotated text in the margins. Originally produced with FrameMaker.

Thank you for your help!
Thomas
  1. rotate_text_margin.jpg334.8 kB
thomasdumm
If no other options exist, I will integrate the rotated text into the background-image an call @page-specific backgound-images. Not perfect, but works.
mikeday
What about something like this:
@page:left {
    @right {
        content: "Hello!";
        transform: rotate(-90deg);
    }
}

@page:right {
    @left {
        content: "Hello!";
        transform: rotate(-90deg);
    }
}