Page Wide Table
Posted: Thu Feb 09, 2023 9:50 am
Hello All,
Using a CSS based transformation for PDF generation.
Used this to generate 2 different tables, one for normal and another for page wide. This works fine if <table> is standalone element.
But, this is not working when tables are nested within <ul> , <info> or other elements.
How to override the Parent element margin settings and make these tables page wide for any instances?
Any thoughts on this?
Using a CSS based transformation for PDF generation.
Code: Select all
/* Table is aligned 3 cm from margin */
*[class~="topic/table"] {
margin-left:3cm;
overflow-wrap: break-word;
}
/* Table is set to full margin of the page */
*[class~="topic/table"][outputclass="pgwide"] {
margin-left:0;
overflow-wrap: break-word;
}
But, this is not working when tables are nested within <ul> , <info> or other elements.
How to override the Parent element margin settings and make these tables page wide for any instances?
Any thoughts on this?