How to highlight active section in navbar? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5

How to highlight active section in navbar?

How to highlight active section menu item on scrolling (in navbar) in html?

23rd Sep 2020, 1:25 PM
$rija $aha [ Inactive For Some Days ]
$rija $aha [ Inactive For Some Days ] - avatar
2 Answers
+ 3
By pure js https://www.w3schools.com/howto/howto_js_active_element.asp By bootstrap https://mdbootstrap.com/snippets/jquery/tonyo/716383#scrollhome You can also do this easily with tailwind and materialize
23rd Sep 2020, 1:34 PM
Shino
Shino - avatar
+ 3
Thank you so much AKM!!! Actually I only know JavaScript 😅
23rd Sep 2020, 3:55 PM
$rija $aha [ Inactive For Some Days ]
$rija $aha [ Inactive For Some Days ] - avatar