Filling color in table cells
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 66
- Joined: Thu Feb 08, 2018 2:44 pm
-
- Posts: 846
- Joined: Mon Dec 05, 2011 6:04 pm
Re: Filling color in table cells
Hello,
You could change the color of specific table cells, by setting an "@outputclass" attribute on the specific cells (specific <entry> elements) you need to customize.
Then, you should create a custom .css file containing the rules to match the specific classes used as outputclass.
For example, if you have the following DITA table (notice the <entry outputclass="test">Chrysanthemum</entry> element): you need the following CSS snippet:
Regards,
Costin
You could change the color of specific table cells, by setting an "@outputclass" attribute on the specific cells (specific <entry> elements) you need to customize.
Then, you should create a custom .css file containing the rules to match the specific classes used as outputclass.
For example, if you have the following DITA table (notice the <entry outputclass="test">Chrysanthemum</entry> element):
Code: Select all
<table frame="none">
<title>Flowers</title>
<tgroup cols="3">
<colspec colname="c1" colnum="1" colwidth="171.0pt"/>
<colspec colname="c2" colnum="2" colwidth="99.0pt"/>
<colspec colname="newCol3" colnum="3" colwidth="200px"/>
<thead>
<row>
<entry>Flower</entry>
<entry>Type</entry>
<entry>Soil</entry>
</row>
</thead>
<tbody>
<row>
<entry outputclass="test">Chrysanthemum</entry>
<entry>perennial</entry>
<entry>well drained</entry>
</row>
<row>
<entry>Gardenia</entry>
<entry>perennial</entry>
<entry>acidic</entry>
</row>
<row>
<entry>Gerbera</entry>
<entry>annual</entry>
<entry>sandy, well-drained</entry>
</row>
</tbody>
</tgroup>
</table>
Code: Select all
entry[outputclass=test] {
background-color:red;
}
Costin
Costin Sandoi
oXygen XML Editor and Author Support
oXygen XML Editor and Author Support
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