Tables bigger than page size

Having trouble installing Oxygen? Got a bug to report? Post it all here.
[Stupid]_[User]
Posts: 21
Joined: Mon Dec 05, 2022 9:35 am

Tables bigger than page size

Post by [Stupid]_[User] »

Hello everyone!

Some tables in my document have size more bigger, than the page size. Some tables also go beyond the margins of the page. Is it a way to set a max table size using css file? It'll be great if, when the table size bigger than it can be, rightmost column will resize automatically (i.e. it would shrink in width).
andrei_pomacu
Posts: 39
Joined: Mon Jul 25, 2022 11:18 am

Re: Tables bigger than page size

Post by andrei_pomacu »

Hi,
If you want to select some tables that needs to be resize you should add an outputclass on each table to be identified in the CSS.
Example:

Code: Select all

outputclass = "fixed-width-table"

In the CSS you can change the width of the table and also you need to break the words in order to fit in a shrink column.

Code: Select all

*[class ~="topic/table"][outputclass = "fixed-width-table"]{
   width: 7in;
   overflow-wrap:break-word;
}

Also, you can check our User Guide related with the control of tables:

https://www.oxygenxml.com/doc/versions/ ... ide_tables
https://www.oxygenxml.com/doc/versions/ ... eding_page
https://www.oxygenxml.com/doc/versions/ ... able_cells

Regards,
Andrei
Post Reply