# DUPLICATE: Table of Content does not show (load) if hidden with CSS on load

**URL:** <https://forum.bricksbuilder.io/t/duplicate-table-of-content-does-not-show-load-if-hidden-with-css-on-load/32495>\
**Category:** Bugs\
**Tags:** v2-0-alpha\
**Created:** [May 14, 2025, 3:01am UTC](https://forum.bricksbuilder.io/t/duplicate-table-of-content-does-not-show-load-if-hidden-with-css-on-load/32495 "2025-05-14T03:01:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![datgausaigon](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/datgausaigon/32/31116_2.png) [@datgausaigon](https://forum.bricksbuilder.io/u/datgausaigon)\
**Post date:** [May 14, 2025, 3:01am UTC](https://forum.bricksbuilder.io/t/duplicate-table-of-content-does-not-show-load-if-hidden-with-css-on-load/32495/1 "2025-05-14T03:01:08Z")

</div>

**Browser** : Chrome Version 136.0.7103.93 (Official Build) (64-bit)  
**OS** : Windows 11  
**Bricks Builder** : 1.12.4 and 2.0 alpha

Related Issue:

> [@WIP: Table of content and nestable tabs](https://forum.bricksbuilder.io/t/wip-table-of-content-and-nestable-tabs/25955):
>
> Hi ! Don’t know if it’s a bug but links inside table of content that point out to headings included in nestable tabs doesn’t work. These links don’t scroll at all. If it’s not a bug, somebody has a solution ? pray Thanks by advance, Clem

To clarify this bug I opened this Issue.

The Table of Contents (ToC) will not be displayed (Load) if it is hidden when loading the page with:

```CSS
display: none;
height: 0;

```

That is the reason why we will not see ToC displayed (Load) when it is placed in Nested like Tab (Nestable), Accordion (Nestable). If Tab / Accordion is hidden by default, ToC will not be seen.

To clarify this I tried to create a “Collapsible Bar” using js + css, containing the Bricks Builder ToC inside.

CSS:

```css
.toc-content {
  display: none;
  height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  flex-direction: column;
}

.toc-container.active .toc-content {
  display: flex;
  height: auto;
}

.toc-header__icon {
  transition: transform 0.3s ease;
}

.toc-container.active .toc-header__icon {
  transform: rotate(180deg);
}

```

JavaScript:

```auto
document.querySelectorAll('.toc-header').forEach(header => {
  header.addEventListener('click', function() {
    const container = this.closest('.toc-container');
    container.classList.toggle('active');
  });
});

```

![image](https://forum.bricksbuilder.io/uploads/default/original/3X/8/a/8ae3a83089d873a58525c8fddf6dc206dd46a844.png)

If “ToC\_\_Container” has class “.active” initially then ToC will be displayed and “Collapsible Bar” will work normally. Otherwise if “ToC\_\_Container” does not have class “.active” initially then ToC will not be displayed (loaded).

Thanks  
🐻

---

<div class="post-metadata">

**Author:** ![Matej](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/matej/32/20184_2.png) [@Matej](https://forum.bricksbuilder.io/u/Matej)\
**Post date:** [May 14, 2025, 8:57am UTC](https://forum.bricksbuilder.io/t/duplicate-table-of-content-does-not-show-load-if-hidden-with-css-on-load/32495/2 "2025-05-14T08:57:54Z")

</div>

Hi @datgausaigon,

thank you for your post. The issue with TOC not loading inside the nestable elements (or if element is hidden at page load), is a known one, and we already have an internal task for it - we are working on it.  
Because of the same issue, I’ll mark your post as a duplicate and close it. Please follow the following topic, as we will update it, once we release a fix.

> [@SOLVED: "Table of content" does not work if I added inside nested accordion](https://forum.bricksbuilder.io/t/wip-table-of-content-does-not-work-if-i-added-inside-nested-accordion/28247):
>
> “Table of content” does not work if I added inside nested accordion. Works properly if the “table of content” is outside the accordion. Bricks version: 1.11.1.1 So I used it in the old version but it was all fine then.

Thank you,  
Matej

---

<div class="post-metadata">

**Author:** ![Matej](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/matej/32/20184_2.png) [@Matej](https://forum.bricksbuilder.io/u/Matej)\
**Post date:** [May 14, 2025, 8:57am UTC](https://forum.bricksbuilder.io/t/duplicate-table-of-content-does-not-show-load-if-hidden-with-css-on-load/32495/3 "2025-05-14T08:57:57Z")

</div>

Closed on May 14, 2025, 8:57am UTC


