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

This widget could not be displayed.
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 Monday in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

505 views 7 6
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