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
Published Mar 12, 2019 in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

1,545 views 4 13
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