PDF Export question: How to modify font in a {code} block?

After upgrading from 3.1 to 3.5 to 4.2, our export to PDF has an oddity: The font in {code} blocks is too laaarrrrgggeee.

It appears the css class is: div class="codeContent panelContent"

What exactly would the css entry be in confluence admin to control/modify this?

Thanks!

1 answer

1 vote
David Simpson Community Champion May 09, 2012

Edit the PDF stylesheet as documented here:

http://confluence.atlassian.com/display/DOC/Customising+Exports+to+PDF#CustomisingExportstoPDF-CustomisingthePDFStylesheet

For

<div class="codeContent panelContent">...</div>

Use the selector

div.codeContent.panelContent {
  font-size: 8px; /* or similar */
}

You may need to specify an element nested inside there to get it working nicely though, e.g.

div.codeContent.panelContent div.someClass {
  font-size: 8px; /* or similar */
}

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Published 14 hours ago in Confluence

Think you know shares vs. @mentions in Confluence? Take this collab quiz.

To anyone who doubts that Atlassians are a little too obsessed with collaboration, and tools related thereto, let me describe a recent discussion we had (which took place on our internal Confluence, ...

99 views 2 4
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you