The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Why am I having problems with my table width?

Martin
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
December 6, 2017

Why is it when I resize the table width to "100%" it comes out perfectly on Confluence but not to the PDF Export?

Am I doing something wrong?

table-confluence-page.pngtable-pdf-export.pngTable-size.png

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
AnnWorley
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 6, 2017

Thanks for including so many details. It looks like you are sizing your tables in the Source Editor, which can introduce user errors, but it looks fine.

I found a good workaround in this ticket: Each column has same width in a table regardless of the contents on exported PDF It's not the exact same issue but the PDF stylesheet suggested did improve my export. What I did was go to Space Tools>Look and Feel and add the following to the PDF stylesheet:

table.confluenceTable {
width: 100%;
table-layout: fixed;
}

Here is my Confluence page:

Screen Shot 2017-12-06 at 1.31.46 PM.png

Without the PDF stylesheet my export looked like:

Screen Shot 2017-12-06 at 1.23.27 PM.png

After I added the stylesheet:

Screen Shot 2017-12-06 at 1.41.57 PM.png

 

A little background: PDF exports of tables have been historically problematic - check out this partial list of bugs:

Screen Shot 2017-12-06 at 1.25.12 PM.png

I look forward to hearing whether a PDF stylesheet helps you get the exports the way you want them.

Martin
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
December 19, 2017

Thanks, this worked :)

Deleted user
January 12, 2020

Hi, does this work for Confluence Cloud? I added the CSS snippet to the Space Settings > Look and Feel > PDF Stylesheet tab but the PDF export is the same Tables laid out erratically. 

Thanks 

TAGS
AUG Leaders

Atlassian Community Events