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

Consider using the documentation theme.

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 Oct 09, 2018 in Confluence

Introducing Praecipio Consulting, an Atlassian Solution Partner

Hey there Community!  My name is Vannya Vallejo, the Channel Communication Specialist at Atlassian and I want to help Atlassian users like you learn about our Solution Partners and how they c...

369 views 0 9
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