-
how to achieve this with tailwindcss. nav link
i still don't want to achieve this with js. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
As far as I know, there's "is current link" pseudo-selector. Since Tailwind CSS is a CSS framework, that means this can't be done with Tailwind alone. You'll have to use JavaScript or server-side rendering. https://stackoverflow.com/questions/2397370/change-link-color-of-the-current-page-with-css |
Beta Was this translation helpful? Give feedback.
-
thanks for your answer, I've overcome this with a simple trick.
|
Beta Was this translation helpful? Give feedback.
thanks for your answer, I've overcome this with a simple trick.