Skip to content

How to highlight current section in top nav menu? #2828

Answered by saadeghi
jaimeiniesta asked this question in Q&A
Discussion options

You must be logged in to vote

but is there a pure daisyUI approach to this?

I don't think so. Because JS can monitor the scroll position and check which section is currently on screen. But that's not something CSS can do.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by jaimeiniesta
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants