How to create CMS dynamic table of contents (Step by step tutorial)

Try this (more specific selector):

<style>
.rich-text-block [id^="toc"] {
  display: block;
  position: relative;
  top: -100px;  /* her change the value to your navbar height*/
  visibility: hidden;
}
</style>

1 Like