Some very wide tables will have trouble displaying on page sizes that are under a certain size. You can choose to have the table display landscape style, or flip it horizontally, so that it's better able to fit on the size of the page you are printing. Follow the directions below to make this change in your book:
Step 1: Insert the following code into your PDF CSS (under Appearance > Custom Styles > PDF):
@page big_table {
prince-rotate-body: landscape;
prince-shrink-to-fit: auto; }
table.big {
page: big_table }
Paste this CSS into the "Custom Styles" section of your PDF CSS. Save your changes.
This piece of CSS creates a class that you can apply to tables that you would like to format horizontally in your PDF exports.
Step 2: You can then add the class to any table in your book.
To do this, find the table in the text editor. Add class="big" into the HTML tag for the
. Example:<table class="big" style="border-collapse: collapse; width: 130.2%; height: 2444px;" border="1">
Save your changes and export a new PDF.
Comments
0 comments
Please sign in to leave a comment.