percentages for column widths don't render as expected
Posted: Fri Jun 14, 2024 10:18 pm
A cals table does not render with the expected width in the browser when percentages are used for the col widths. It does work with proportional widths.
For example, this renders at 100% width of the page:
But this does not:
I have tried setting width to 100% for all tables in the css but it does not get applied. Is there we can do in the css to get these tables to display at 100% width?
For example, this renders at 100% width of the page:
Code: Select all
<table>
<tgroup cols="2">
<colspec colname="c1" colnum="1" colwidth="1*"/>
<colspec colname="c2" colnum="2" colwidth="1*"/>
Code: Select all
<table>
<tgroup cols="2">
<colspec colname="c1" colnum="1" colwidth="50%"/>
<colspec colname="c2" colnum="2" colwidth="50%"/>