+ 1
What's the problem here? When I clicked the <a href="#"><a> link in navbar the navbar redirect to top then close.
But when I clicked the <a href ="#project" link in navbar it redirect to project but doesnt close the navbar? https://code.sololearn.com/W7GeEtHkcrS6/?ref=app
2 Réponses
+ 3
Bootstrap nav don't close the navbar onclick by default. You have to code it.
Look at this :
https://stackoverflow.com/questions/42401606/how-to-hide-collapsible-bootstrap-navbar-on-click
+ 1
Because the # character inside the link render you to the current page you are on is like reloading the location.