With Css, show sub-nav ul only when a URL is active

+1 vote
asked Feb 25, 2016 by Grinman (1,110 points)
I am using modified bootstrap navbar (vertical of horizontal) and want to show sub-menu only if one of 5 pages is active. Any one can help me with this

3 Answers

+1 vote
answered Mar 29, 2016 by vg_5411 (550 points)
Best answer
I just created jQuery - Official Site for this same problem
See a demo and answer here for usage
+1 vote
answered Feb 29, 2016 by reiman (1,080 points)

Here, we use an unordered list inside of a nav tag.
commented Mar 1, 2016 by Gur2836reihl (330 points)
There is no trivial way to answer to your question
commented Mar 1, 2016 by guv_The (650 points)
Footer will not go upwards
0 votes
answered Apr 6, 2016 by hinsch (1,100 points)
Checkout this article

What is Geekub?

Q&A site for professional and enthusiast programmers, software developers and other technical users. With your help, we hope to work together to build a library of detailed answers to just about any question that is related to programming!