• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Low Low
    • 1.4
    • 1.4
    • None

      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>

      {html}

      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">

        1. site-css.vm
          24 kB
          dave
        2. Table.class
          3 kB
          dave
        3. TableCell.class
          2 kB
          dave

            [CONFSERVER-3273] wiki content styles override styles in included html

            Katherine Yabut made changes -
            Workflow Original: JAC Bug Workflow v3 [ 2896992 ] New: CONFSERVER Bug Workflow v4 [ 2990568 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow v2 [ 2788553 ] New: JAC Bug Workflow v3 [ 2896992 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow [ 2719225 ] New: JAC Bug Workflow v2 [ 2788553 ]
            Owen made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2387775 ] New: JAC Bug Workflow [ 2719225 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 2264190 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2387775 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2207987 ] New: Confluence Workflow - Public Facing - Restricted v5 [ 2264190 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2187263 ] New: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2207987 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 1913476 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2187263 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v3 [ 1721368 ] New: Confluence Workflow - Public Facing - Restricted v5 [ 1913476 ]
            Katherine Yabut made changes -
            Workflow Original: CONF Bug Subtask WF (TEMP) [ 1671353 ] New: Confluence Workflow - Public Facing - Restricted v3 [ 1721368 ]

              cmiller@atlassian.com Charles Miller (Inactive)
              cmiller@atlassian.com Charles Miller (Inactive)
              Affected customers:
              0 This affects my team
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: