This article explains how to highlight a single cell created using Advanced Tables when the mouse hovers over the cell. There are two ways to accomplish this, "Using the CSS Stylesheet in Space" OR "Using the Advanced Tables app along with the HTML for Confluence app"
Using the CSS Stylesheet in Space
Instructions:
- Log into your Confluence instance as a Confluence System administrator.
- Navigate to the existing page and click
- Insert Advanced Table -Table Plus macro. For example, create a table as shown below:
Edit the macro on the Advanced Tables Editor-Table Plus screen, under Column settings and add the Column attributes as below.
class=confluenceTd cellhover
- Go to Space Tools and click Look and Feel.
- Under Stylesheet tab, enter the CSS code.
Click Save.
td.cellhover:hover{ background-color:lightblue; }
- Open the respective confluence page, hover the mouse over a cell.
Using Advanced Tables with the HTML for Confluence app
Instructions:
- Log into your Confluence instance and follow Step 2 to Step 4 from the above set of instructions.
Include the HTML for Confluence app and add the CSS code in the macro.
td.cellhover:hover{ background-color:lightblue; }
- Click Save.
- Open the respective confluence page, hover the mouse over a cell. The cell is displayed as shown below:
- Ensure that the HTML for Confluence is installed for the second option to work.