Greetings
I have been vainly trying to center-align text (meaning, the text appears in the center of the page, and not left or right-aligned). I clicked the align center button, and it appears correctly center-aligned in the preview, but when I generate a PDF output, the text is still left-aligned. How do I fix this without messing with the style sheet?
Help Center-Aligning Text
-
- Propeller Head
- Posts: 26
- Joined: Thu Jan 12, 2023 2:15 pm
Re: Help Center-Aligning Text
What type of text are you applying the center style to (<p>, <h1> etc.)? I was able to apply style="text-align: center;" to a paragraph <p> and it behaved properly in the generated PDF. I know you don't want to mess with the stylesheet, but there might be an style defined there for '@meda print' that is not allowing the text to center (although I would think an inline style would take priority).