Skip to end of banner
Go to start of banner

How to highlight a single cell when mouse is hovered over an Advanced Table cell

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 17 Current »

This article explains how to highlight a single cell, when the mouse hovers over the cell, in a table created using Advanced Tables for Confluence. There are two ways to accomplish this:

  • Use a CSS stylesheet in Space Stylesheet
  • Use the Advanced Tables for Confluence app along with the HTML macro (HTML for Confluence)

Use a CSS stylesheet in Space Stylesheet

Instructions

  1. Log into your Confluence instance as an administrator.
  2. Navigate to any existing page and click  to edit the page, or, create a new page.
  3. Insert Advanced Table -Table Plus macro. As an example, create a table as shown below:

  4. Edit the macro and add the following Column attribute under Column settings in the Advanced Tables Editor-Table Plus screen:

    class=confluenceTd cellhover


  5. Go to Space Tools > Look and Feel > Stylesheet and enter the following CSS code:
  6. Click Save.

    td.cellhover:hover{
    background-color:lightblue;
    }

     

Open the relevant Confluence page and hover the mouse over a cell. The cell is highlighted in the specified color.


Using Advanced Tables for Confluence with the HTML macro (HTML for Confluence)

Instructions

  1. Log into your Confluence instance and follow Step 2 to 4 from the instructions above. 
  2. Include the HTML macro and add the CSS code in the macro as follows:

    td.cellhover:hover{
    background-color:lightblue;
    }

  3. Click Save.

Open the relevant Confluence page and hover the mouse over a cell. The cell is displayed as shown below:

Ensure that the HTML for Confluence app is installed for the second option to work. 

  • No labels