+ 4

How to close the NavBar when clicking outside the Navbar

https://code.sololearn.com/W3dp4vvBNw0g/?ref=app

29th Dec 2020, 1:13 PM
DINESH
DINESH - avatar
5 Respostas
+ 5
I think there are 2 solutions: You can use on hover or on active. If you use on hover, the menu or your element will only open if you hover it, buy it closed if you remove your cursor. (this is css solution) For more help please post your code 🙂 Tnx. Hope this helps. Here an example: https://code.sololearn.com/WJwn45lkSr9b/?ref=app
29th Dec 2020, 1:19 PM
Matthew
Matthew - avatar
+ 2
https://code.sololearn.com/W3dp4vvBNw0g/?ref=app
29th Dec 2020, 2:34 PM
DINESH
DINESH - avatar
+ 2
Yeah bro ..let me try this.. Tq bro😊
29th Dec 2020, 3:54 PM
DINESH
DINESH - avatar