Working Around Background Color Row Style Incompatibility in Confluence 5.0
On this page
Overview
Starting with Confluence 5.0-rc1, a compatibility bug (CONF-28098) was introduced that overrides attempts by users and macros to provide row level background setting. For instance, this impacts table-based macros including:
This impacts at least the following:
- Row highlighting on mouse-over
- Customized row styles like table stripping - see How to control table display characteristics for instance
It also impacts users using more advanced table producing techniques that use the confluenceTable style.
CONF-28098 will be fixed in 5.1.2 and 5.2, until then the following work around can be used to revert the error to the previous state.
Steps
- Go to Confluence administration -> Look and Feel -> Custom HTML
- Edit
Add the following to the *At end of the HEAD* section and save:
<style type="text/css"> .confluenceTable .confluenceTd { background-color: transparent; } </style>
Cloud
While the problem may not have appeared in Cloud, it will . Unfortunately, the workaround suggested above is not available with Cloud. Alternatives are to use the css macro and insert the equivalent css onto a page. If you are using the documentation theme, it is also possible to insert the css macro in the Header section of the theme configuration so that it can apply to the entire space.
Other Examples
Visit our full list of product examples for additional inspiration!