percentages for column widths don't render as expected
Having trouble deploying Oxygen XML Web Author? Got a bug to report? Post it all here.
-
- Posts: 12
- Joined: Wed Feb 10, 2016 11:32 pm
percentages for column widths don't render as expected
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%"/>
-
- Site Admin
- Posts: 233
- Joined: Wed Aug 30, 2023 2:33 pm
Re: percentages for column widths don't render as expected
Hello,
Thank you for contacting us.
Would you like the column width to be rendered in the output or during editing?
Best,
Cosmin
Thank you for contacting us.
Would you like the column width to be rendered in the output or during editing?
Best,
Cosmin
Cosmin Eftenie
www.oxygenxml.com
www.oxygenxml.com
-
- Site Admin
- Posts: 233
- Joined: Wed Aug 30, 2023 2:33 pm
Re: percentages for column widths don't render as expected
Hello,
CALS tables do not support column widths specified in percentages (%) according to the standard [1].
To achieve the desired behavior, use proportional measures (1*, 2*, etc.) or fixed units (pt, cm, mm, pi, in) for colwidth attributes in your colspec elements.
[1] https://www.oasis-open.org/specs/a502.h ... sep%20%3Dx
Best,
Cosmin
CALS tables do not support column widths specified in percentages (%) according to the standard [1].
To achieve the desired behavior, use proportional measures (1*, 2*, etc.) or fixed units (pt, cm, mm, pi, in) for colwidth attributes in your colspec elements.
[1] https://www.oasis-open.org/specs/a502.h ... sep%20%3Dx
Best,
Cosmin
Cosmin Eftenie
www.oxygenxml.com
www.oxygenxml.com
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