Tables with split rows have extra padding in the second row
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 31
- Joined: Fri Aug 24, 2018 4:27 pm
Tables with split rows have extra padding in the second row
Post by shannonxtreme »
In tables with split rows (see below), if the row is split into two rows from the second column onwards, the second row has extra padding on the bottom. If there are 3 or more rows in the split, there is no spacing problem. The only padding rule we have is 0.5em padding-top and 0.25em padding-bottom for <entry> elements. How do we ensure even row height?
Code: Select all
<table id="table_BBE1B8193AB5472D9756799F64695585">
<tgroup cols="4"><colspec colnum="1" colname="col1"
colwidth="1in"/><colspec colnum="2" colname="col2" colwidth="1.85in"/><colspec
colnum="3" colname="col3" colwidth="2in"/><colspec colnum="4" colname="col4"
colwidth="2in"/><thead>
<row>
<entry colname="col1">Tax Year
</entry>
<entry colname="col2">Beneficiary
</entry>
<entry colname="col3">Records in the *** Outgoing File
</entry>
<entry colname="col4">Record Version
</entry>
</row></thead>
<tbody>
<row>
<entry colname="col1" morerows="1">2014
</entry>
<entry colname="col2">Beneficiary 1
</entry>
<entry colname="col3"> **** – Inter Plan Transfer
</entry>
<entry colname="col4"> Original
</entry>
</row>
<row>
<entry colname="col2">Beneficiary 2
</entry>
<entry colname="col3"> **** – Inter Plan Transfer
</entry>
<entry colname="col4"> Original
</entry>
</row>
<row>
<entry colname="col1" morerows="3">2015
</entry>
<entry colname="col2">Beneficiary 1
</entry>
<entry colname="col3"> **** – Annual Contribution
</entry>
<entry colname="col4"> Cancelled
</entry>
</row>
<row>
<entry colname="col2">Beneficiary 1
</entry>
<entry colname="col3"> **** – Annual Contribution
</entry>
<entry colname="col4"> Amended
</entry>
</row>
<row>
<entry colname="col2">Beneficiary 2
</entry>
<entry colname="col3"> **** – Annual Contribution
</entry>
<entry colname="col4"> Cancelled
</entry>
</row>
<row>
<entry colname="col2">Beneficiary 2
</entry>
<entry colname="col3"> **** – Annual Contribution
</entry>
<entry colname="col4"> Amended
</entry>
</row>
</tbody>
</tgroup>
</table>
-
- Posts: 501
- Joined: Mon Feb 03, 2003 10:56 am
Re: Tables with split rows have extra padding in the second row
Hello,
What scenario are you using? The one based on HTML?
I tested with:
and I see that the text is aligned correctly on the baseline of the table row.
I recommend to try a transformation without a CSS customization (the default transformation scenario from oXygen) and see what happens. Then add the CSS snippet above to new customization and check again the PDF output. If it is ok, add parts of your customization and identify the one that breaks the layout.
If you still have problems, contact us on the technical support form and give us some screenshots and your customization CSS.
Many regards,
Dan
What scenario are you using? The one based on HTML?
I tested with:
Code: Select all
*[class ~= 'topic/entry'] {
padding-top:0.5em;
padding-bottom:0.25em;
color:green;
}
I recommend to try a transformation without a CSS customization (the default transformation scenario from oXygen) and see what happens. Then add the CSS snippet above to new customization and check again the PDF output. If it is ok, add parts of your customization and identify the one that breaks the layout.
If you still have problems, contact us on the technical support form and give us some screenshots and your customization CSS.
Many regards,
Dan
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