Fixed table of content

I want to make a column on the right contain a Panel that in turn contains a Table of Contents macro.

I have all this setup - but I would like to make it so that this Table of Contents is "fixed" to the right side of the screen so that it is visible to help navigate around the page as you scroll up and down.


What is the best way to go about this?

2 answers

Hi William Yeack,

I don't know what the "best" way is, but I would experiment with combinations of a {div} macro and some CSS.

  1. Create a {div} macro on your wiki page
  2. Put the {toc} macro inside the {div} macro
  3. Attach some combination of the following CSS to the {div} macro
position: fixed/relative/absolute;
top: {some_number} px;
right: {some_number} px;

For step 3 you can either use inline styles or a CSS class.

  1. Open the {div} macro's menu
  2. Enter the CSS as inline style at "Style" -or- 
  3. Enter a class name at "Class" and then use this class name to define your CSS in a {CSS} macro

 

 

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

2,695 views 26 10
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you