Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This article explains how to highlight a single cell created using Advanced Tables when , when the mouse hovers over the cell, in a table created using Advanced Tables. There are two ways to accomplish this, "Using the CSS Stylesheet in Space" OR "Using :

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

...

...

Use a CSS

...

stylesheet in Space Stylesheet

Instructions:

  1. Log into your Confluence instance as a Confluence System an administrator.
  2. Navigate to the any existing page and click  to edit the page, or, create a new page.
  3. Insert Advanced Table -Table Plus macro. For As an example, create a table as shown below:
    Image RemovedImage Added
  4. Edit the macro on and add the following Column attribute under Column settings in the Advanced Tables Editor-Table Plus screen, under Column settings and add the Column attributes as below.:

    Code Block
    themeMidnight
    class=confluenceTd cellhover


    Image Modified

  5. Go to Space Tools and click  > Look and Feel .Under Stylesheet tab, enter the CSS code.
    Image RemovedStylesheet and enter the following CSS code:
    Image Added
  6. Click Save.
    Image RemovedImage Added 

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


  7. Open the respective confluence page, hover the mouse over a cell.


Using Advanced Tables with the HTML for Confluence app

Instructions:

  1. Log into your Confluence instance and follow Step 2 to Step 4 from the above set of instructions. 
  2. Include the HTML for Confluence app and add the CSS code in the macro.

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


  3. Click Save.
  4. Open the respective confluence page, hover the mouse over a cell. The cell is displayed as shown below:
    Image RemovedImage Added



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

...