Display Landscape Table in Print Version

Theme Options allow you to adjust the display options for the web, PDF, and eBook version of your text individually. The amount of customization available for each format will vary depending on the theme you have chosen.

Resourcces

To learn more about adjusting export Appearance settings, review the following guide:

Issue

A wider table may display well in the web version of your text, but get cut off in the PDF export.

Solution

Remember when editing the Custom Styles Sheet, you can customize the Web, PDF, and Ebook versions. If you want the change to occur across all three formats, you will need to copy the code to each drop-down (top).

 

To prevent the table from getting cut off, you can add CSS  to the Custom Styles Sheet that will force the table to display in landscape format in your PDF export.

  1. On the Dashboard, select Appearance then Custom Styles
  2. At the top of the page, select PDF on the dropdown menu labelled –  You are currently editing styles for:
  3. In the Your PDF Styles box, add the CSS shown below

Custom CSS:

@page big_table {
prince-rotate-body: landscape;
prince-shrink-to-fit: auto; }
table.big {
page: big_table }

 

 

 

License

Icon for the Creative Commons Attribution 4.0 International License

Digging Deeper into Pressbooks Visual Design Copyright © 2023 by Erin Fields and Leila Malkin is licensed under a Creative Commons Attribution 4.0 International License, except where otherwise noted.

Share This Book