Developers: How do I add a horizontal table of contents (TOC) for blog posts like Healthline, Greatist, PsychCentral, and BarBend?

[ad_1]

I’m thinking it must be in the CSS code, but I can’t figure it out. I’m flexible on which theme to use.Here are some examples of the horizontal table of contents. I prefer the style of the TOC under the H1, but I’m open to whatever at this point!

* [https://www.healthline.com/health/healthy-sleep/fall-asleep-fast])
* [https://greatist.com/health/aluminum-in-deodorant])
* [https://psychcentral.com/health/box-breathing])
* [https://barbend.com/best-greens-powders/])

[ad_2]
1 Comment
  1. If you’re just after the CSS:

    .container {
    cursor: grab;
    overflow: auto;
    }

    Ask a more specific question – there are a lot of moving parts to a TOC.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer