Page 1 of 1

Tables bigger than page size

Posted: Mon Dec 12, 2022 2:32 pm
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).

Re: Tables bigger than page size

Posted: Tue Dec 13, 2022 11:25 am
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