# Adding a table of contents

**URL:** <https://forum.ghost.org/t/adding-a-table-of-contents/29588>\
**Category:** Developer help\
**Created:** [April 15, 2022, 1:44pm UTC](https://forum.ghost.org/t/adding-a-table-of-contents/29588 "2022-04-15T13:44:44Z")\
**Posts on this page:** 1\
**Showing post:** 17

<div class="post-metadata">

**Author:** ![denvergeeks](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/denvergeeks/32/7401_2.png) [@denvergeeks](https://forum.ghost.org/u/denvergeeks)\
**Post date:** [June 24, 2023, 8:55am UTC](https://forum.ghost.org/t/adding-a-table-of-contents/29588/17 "2023-06-24T08:55:31Z")

</div>

@Darren_Sherwood try putting the aside.gh-sidebar inside the div.c-sidebar

**What I see currently…**

 ![Screenshot 2023-06-24 024856](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/3X/f/4/f44daf5c72817d9e02b42e1cc4d6d0ad438509a9.png)

**Try this…**

 ![Screenshot 2023-06-24 025138](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/3X/5/9/595aa2316c14ffd390606301b6cf79c502435af2.png)

**Also, this in the CSS…**

```auto
.c-sidebar {
    position: absolute;
}

aside.gh-sidebar {
    position: absolute;
    top: 0;
    bottom: 0;
    margin-top: 4vmin;
}

.gh-toc
    position: sticky;
    top: 4vmin;
}

```

---

_[View the full topic](https://forum.ghost.org/t/adding-a-table-of-contents/29588)._
