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
Community showcase
Published Dec 18, 2018 in Confluence Cloud

Happy holidays from our team to yours!

Hi Community!  2018 was filled with changes for our team, both big and small, and we've taken a lot of time to both celebrate our wins and recognize areas of improvement. One thing that we're a...

482 views 3 18
Read article

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