It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Confluence Cloud (2020): How to add CSS that works to the PDF Stylesheet in a page

I have spent hours searching the Confluence forums and help pages with no success. Nearly everything I find dates back to 2018. 

I have the latest page editor in Confluence Cloud. 

I would like to customize the CSS for my pages (NOT at the Global setting) using the PDF StyleSheet under

Space Settings > Look and Feel

I want to change my headings and fonts on the page using this snippet of CSS code. 

 

h1 {
font-size: 2.5em; /* 40px/16=2.5em */
font-family: Impact, Charcoal, sans-serif;
text-decoration: underline;
text-shadow: 3px 2px lightgray;
color: #048DB2;
}

h2 {
font-size: 1.75em; /* 30px/16=1.875em */
font-family: Tahoma, Geneva, sans-serif;
}

p {
font-size: 0.875em; /* 14px/16=0.875em */
font-family: Tahoma, Geneva, sans-serif;
line-height: 1.5;
letter-spacing: 1.5px;
}

 

I've tried everything and nothing is working. 

1 answer

0 votes

Hi Tara,

Thank you for contacting us about this.

There are some further instructions from our Advanced PDF Export Customizations page.  Have you seen the instructions there? Perhaps they can help you to customize your PDF export.

You can also upload a custom font and refer to it using the method in the article above.

I hope that helps; let me know if you have any questions about that.

Regards,

Shannon

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Confluence

Lessons and Learnings: Six Months of Working Remote [Discussion]

Hey there, folks! For most of us, the past six months- yes, you read that right- have been a journey. More people than ever before have pivoted to working remotely, and navigating being on-scre...

6,539 views 5 6
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you