Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Fixed table of content

William Yeack
Contributor
May 5, 2015

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?

3 answers

0 votes
Michael Yang - Shinetech Software
Atlassian Partner
December 24, 2019
0 votes
Steffen Heller
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 5, 2015

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

 

 

0 votes
Bob Swift
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 5, 2015

Consider using the documentation theme.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events