Help Center-Aligning Text

This forum is for all Flare issues related to styles, stylesheets and XML.
Post Reply
teknikulriter
Propeller Head
Posts: 26
Joined: Thu Jan 12, 2023 2:15 pm

Help Center-Aligning Text

Post by teknikulriter »

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?
zappy0
Propeller Head
Posts: 39
Joined: Fri Mar 25, 2016 2:19 pm

Re: Help Center-Aligning Text

Post by zappy0 »

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).
Post Reply