Filling color in table cells
Posted: Fri Apr 27, 2018 10:00 am
How to fill colors in particular table cells.
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;
}