+ 1

Dynamic menu bar with "active" CSS

I created a dynamic menu bar, which picks menu title and content from SQL database. I just want to add some CSS on navigation bar which is active at current time. How can I solve this? (maybe with getting url?)

3rd Apr 2017, 2:35 PM
Ani Naslyan
Ani Naslyan - avatar
2 Answers
+ 15
Use the <a> tag around your menu items and style the links with CSS. a:link {} a:visited {} a:active {} for active links a:hover {}
26th Nov 2017, 12:03 AM
###
+ 1
Please provide your code so we can help you!
5th Apr 2017, 4:26 PM
Waren Gonzaga
Waren Gonzaga - avatar