On Demand Confuence - PDF Export - Tables have equal size columns, need text-sized

Apparently, PDF export takes any table and forces the columns to be all the same width. Three columns are forced to 33% each regardless of the text. I would like them to NOT specify the width, and let the columns achieve their natural width based on the content. Cannot find how to do this. Certainly there is a CSS override (already using one to increase the font size) but I am not savvy enough to find it.

Thanks in advance.

3 answers

1 accepted

This behaviour is defined by the CSS property "table-layout". It can be "auto" or "fixed". Try "auto" to have the table automatically adjust to the content inside the table cell.

I added the code

table 
{
    border-collapse: collapse;
    table-layout:auto;
}

And it works like a CHARM!

Thank you Steffan!!

You added that code on the PDF Stylesheet on the Look&Feel section??

@Jorge:

Yes, that is right. You must enter the CSS code at
Browse > Space Admin > Look and Feel > PDF Stylesheet > PDF Export Stylesheet

Thanks, Steffan. Will try it shortly!

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Confluence

Three common content challenges + how to manage them

An efficient enterprise content management system, or ECM, is a must-have for companies that create work online (cough   cough, all companies). If content calendars, marketing plans, and bu...

71 views 0 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