Centre tables on a page
Having trouble installing Oxygen PDF Chemistry? Got a bug to report? Post it all here.
-
- Posts: 663
- Joined: Wed Oct 16, 2019 3:47 pm
Re: Centre tables on a page
Post by julien_lacour »
Hello Duncan,
You should be able to center your table using the following selector:
Feel free to modify the values to fit your needs.
There is also an issue on our side to add the 'auto' support for table margins but it will be in a future release.
Regards,
Julien
You should be able to center your table using the following selector:
Code: Select all
table {
margin-right: 30%;
margin-left: 30%;
}
There is also an issue on our side to add the 'auto' support for table margins but it will be in a future release.
Regards,
Julien
-
- Posts: 41
- Joined: Wed Aug 14, 2019 9:16 am
Re: Centre tables on a page
Hi Julien,
The CSS selector works, however it compresses all tables to fit within those margins.
Thanks.
The CSS selector works, however it compresses all tables to fit within those margins.
Does this mean there is not an option currently for tables to automatically size and adjust their layout (as per https://www.oxygenxml.com/doc/versions/ ... aid-title5), and be centred on the page?There is also an issue on our side to add the 'auto' support for table margins but it will be in a future release.
Thanks.
-
- Posts: 663
- Joined: Wed Oct 16, 2019 3:47 pm
Re: Centre tables on a page
Post by julien_lacour »
Hello Duncan,
Unfortunately, we do not have an option to center the tables automatically inside a page, this should be done by
But this is not yet supported by the Apache FOP engine used inside Oxygen PDF Chemistry.
Until we add this support you can use the percentage solution (updated to your needs) with or without the automatic table layout.
Please note that the table-layout CSS property sets the algorithm used to lay out <table> cells, rows, and columns. Not its position in the document.
Regards,
Julien
Unfortunately, we do not have an option to center the tables automatically inside a page, this should be done by
Code: Select all
table {
margin-right: auto;
margin-left: auto;
}
Until we add this support you can use the percentage solution (updated to your needs) with or without the automatic table layout.
Please note that the table-layout CSS property sets the algorithm used to lay out <table> cells, rows, and columns. Not its position in the document.
Regards,
Julien
-
- Posts: 663
- Joined: Wed Oct 16, 2019 3:47 pm
Re: Centre tables on a page
Post by julien_lacour »
Hello Duncan,
Starting with Oxygen 22.1, you can center tables inside a page.
For more informations, please check the documentation.
Regards,
Julien
Starting with Oxygen 22.1, you can center tables inside a page.
For more informations, please check the documentation.
Regards,
Julien
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service