Details
-
Bug
-
Resolution: Fixed
-
Low
-
1.4
-
None
Description
From a customer:
==============
I was just evaluating Confluence 1.4 RC2 and noticed that when using the HTML macro, table styles within the
{html} tags are overridden by the Confluence built-in style in site-css.vm, line 578:.wiki-content td, .wiki-content th, .commentblock td, .commentblock th {
border: 1px solid #ccc;
padding: 3px 4px 3px 4px;
}
Example: the following table should come out with a dashed red border
{html}
<table border="0" style="border: 1px dashed #ff0000;">
<tr>
<td>test</td>
<td>test</td>
</tr>
</table>
Instead, it comes out looking as if using the wiki language tables:
test | test |
that is with a border style of "1px solid #ccc".
Note that the table styles are not overridden in page preview mode, only when viewing a page in non-edit mode.
The version of the HTML macro we are using is 1.3. We do not see this problem in Confluence 1.3. The ability to display tables with no borders is essential for professional looking article-like pages when content is displayed in a columnar format.
=========
It may be possible to fix this by placing all included HTML inside <div class="included-html">, then having styles in the sheet that override the wiki-content styles, e.g.
.included-html td, .included-html th {
border: inherit;
padding: inherit;
}
Worth trying, anyway. Otherwise we'll have to go back to <table class="wiki-table">