SimpleTable issue
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 14
- Joined: Mon Dec 07, 2020 12:57 pm
SimpleTable issue
My dita-project contains a couple of SimpleTables which which cause an issue when transformed to HTML5.
In the html-file these tables are shown as:
So they include - which forces 2 50% columns which looks bad in case the contents of the table requires something like 10% / 90%.
Is the a way to override this in CSS to 'width: auto' or similar, or is there a way to remove this from the html-output.
Thanks!
In the html-file these tables are shown as:
Code: Select all
<table class="simpletable"><colgroup><col style="width:50%"><col style="width:50%"></colgroup><tbody><tr class="strow">
Code: Select all
<colgroup><col style="width:50%"><col style="width:50%"></colgroup>
Is the a way to override this in CSS to 'width: auto' or similar, or is there a way to remove this
Code: Select all
<colgroup><col style="width:50%"><col style="width:50%"></colgroup>
Thanks!
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: SimpleTable issue
Hi,
After you add a simple table in Oxygen you can drag the column margins to resize the table cells and produce a table XML content which has proportions like for example:
Then the published HTML5 document has similar proportions in the equivalent HTML table.
Regards,
Radu
After you add a simple table in Oxygen you can drag the column margins to resize the table cells and produce a table XML content which has proportions like for example:
Code: Select all
<simpletable relcolwidth="1.0* 9*">
<sthead>
<stentry>a</stentry>
<stentry>b</stentry>
</sthead>
<strow>
<stentry>c</stentry>
<stentry>d</stentry>
</strow>
</simpletable>
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Return to “DITA (Editing and Publishing DITA Content)”
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