Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How can I aline the text when exporting to PDF?

Catherine October 1, 2018

Hello!

 

Sorry to say I'm not a professional in css, that is why I need your help with exporting:

 

I have headers and footers (they are working ok), but the body of my documents should be alined and sized 20pt (and they are not working).

 

My code:

@page
{
@top-center
{
content: "TEXT";
font-family: ConfluenceInstalledFont, Helvetica, Arial, sans-serif;
font-size: 8pt;
font-style: oblique;
}
@bottom-right
{
content: counter(page);
font-family: ConfluenceInstalledFont, Helvetica, Arial, sans-serif;
font-size: 8pt;
padding-bottom: 3em;
font-style: oblique;
}
{
font-family: ConfluenceInstalledFont, Helvetica, Arial, sans-serif;
font-size: 20pt;
text-align: justify;
}
}

How can i solve the problem? 

1 answer

1 accepted

2 votes
Answer accepted
Shawn C
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 2, 2018

Hi Catherine, 

After looking at a few other examples on the Atlassian Community, it looks like you're just missing the relation for "Body" in your CSS code.  Try updating the last part to something like this:

...
font-style: oblique;
}

body,p,li,td,table,tr,.bodytext,.stepfield
{
font-size: 20pt;
font-family: ConfluenceInstalledFont, Helvetica, Arial, sans-serif;
text-align: justify;
}

Cheers,
Shawn

Catherine October 2, 2018

Thank you, Shawn!

 

You are quite right! I have done it!

 

Sincerely yours,

Catherine

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, knowledge sharing, intentional knowledge sharing playbook, loom, confluence, team collaboration, knowledge management, workplace productivity, information silos, documentation best practices, internal communication, knowledge sharing strategies

Conquer collaboration chaos with Loom + Confluence

You don't need more tools. You need tools that actually work together – the way humans do. See how Loom + Confluence help teams collaborate with more context, more connection, and fewer calendar invites. 💪

See inside
AUG Leaders

Atlassian Community Events