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
Community showcase
Posted Oct 24, 2018 in Confluence

Atlassian Research opportunity with Confluence templates

Do you use templates with Confluence? Take part in a remote 1-hr workshop. You'll receive USD $100 for your time!   We're looking for people to participate in a   remote 1-hr workshop...

1,538 views 25 14
Join discussion

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