---
title: "Comment by Cess on \"Using CSS Variables like a Pro\" | Hashnode"
description: "Nice article.. how can one make the table of contents exactly like that ?"
url: "https://hashnode.com/posts/using-css-variables-like-a-pro/618a2ff8468c06249afc433e/comment/61911ef3770afc563f667629"
---

[Discussion](https://hashnode.com/posts/using-css-variables-like-a-pro/618a2ff8468c06249afc433e)

Comment [Using CSS Variables like a Pro](https://hashnode.com/posts/using-css-variables-like-a-pro/618a2ff8468c06249afc433e)

[Cess](https://hashnode.com/@Cesscode)

[Nov 14, 2021](https://hashnode.com/posts/using-css-variables-like-a-pro/618a2ff8468c06249afc433e/comment/61911ef3770afc563f667629)

Nice article.. how can one make the table of contents exactly like that ?

[Timonwa Akintokun](https://hashnode.com/@Timonwa)

[Nov 14, 2021](https://hashnode.com/posts/using-css-variables-like-a-pro/618a2ff8468c06249afc433e/comment/61911ef3770afc563f667629#reply-619139c983e4212d6e579d15)

Thank you.

It's just like inline linking in html/css. You use one # for all headings. Then no space between the # and the anchor name. The anchor tag names must be in lowercase, and delimited by dashes if multi-word.

Eg. `[click on this link​](​#my-multi-word-header​)`

`###My Multi Word Header`

Then I think(I can't rmmbr) if there are multiple headers with d same name, you will add number at the end of it.

Eg. `[click on this link​](​#duplicate-header1) [click on this link too](​#duplicate-header2)`

`##Duplicate Header` `###Duplicate Header`

[Cess](https://hashnode.com/@Cesscode)

[Nov 14, 2021](https://hashnode.com/posts/using-css-variables-like-a-pro/618a2ff8468c06249afc433e/comment/61911ef3770afc563f667629#reply-61914d00770afc563f6678ce)

Interesting... I will try it out in my next article
