When publishing to HTML using the DITA Open Toolkit, certain inline table attributes are automatically applied such as frame="border" and rules="all".
I am facing an issue where I need to override the "rules" attribute for table cells using CSS styles. While I have been successful in achieving the desired result in Internet Explorer and Chrome, Firefox stubbornly retains solid black gridlines in the table.
Due to company policy, I am not able to directly edit the HTML or XSLT files. How can I eliminate these gridlines solely through CSS?
I have attempted various combinations of border styles with !important declarations but to no avail.
The structure of the HTML code is...
<table cellpadding="4" cellspacing="0" frame="border" border="1" rules="all">
<thead>
<tr>
<th class="cellrowborder">Type </th>
<th class="cellrowborder">Comment </th>
</tr>
</thead>
<tbody>
<tr>
<td class="cellrowborder">Caution </td>
<td class="cellrowborder">Think twice. </td>
</tr>
<tr>
<td class="cellrowborder">Attention </td>
<td class="cellrowborder">Be careful. </td>
</tr>
<tr>
<td class="cellrowborder">Danger </td>
<td class="cellrowborder" >Be scared. Be very scared. </td>
</tr>
</tbody>
</table>
The corresponding CSS properties are as follows:
table {border: 1px solid black;
font-family: Arial, Helvetica, sans-serif;
border-collapse: collapse;
font-size: 9pt;
margin-top: 1em;
margin-bottom: 1em;
padding: 4px;}
tr {border: none;}
.cellrowborder {border: none;}
While the design displays correctly in IE, Firefox continues to show the unwanted gridlines unless I remove the frame/border/rules attributes from the HTML - which is not a viable solution for production purposes.