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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

862 views 23 12
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