\r\n \r\n\r\n\r\n\r\n\r\n\r\n<----css---->\r\n@import url(\"https://fonts.googleapis.com/css2?family=Cutive&display=swap\");\r\n* {\r\n margin: 0;\r\n padding: 0;\r\n box-sizing: border-box;\r\n font-family: \"Cutive\", serif;\r\n}\r\na {\r\n text-decoration: none;\r\n text-transform: capitalize;\r\n color: rgb(255, 253, 253);\r\n}\r\nheader {\r\n width: 100%;\r\n height: 12vh;\r\n position: relative;\r\n margin-top: 8px;\r\n}\r\n#navbar {\r\n width: 100%;\r\n height: 15vh;\r\n display: flex;\r\n justify-content: space-around;\r\n align-items: center;\r\n position: absolute;\r\n}\r\n#logo {\r\n height: 20vh;\r\n width: auto;\r\n}\r\n#navbar ul li {\r\n list-style: none;\r\n display: inline-block;\r\n padding: 0 15px;\r\n}\r\n#navbar ul li a {\r\n text-decoration: none;\r\n text-transform: capitalize;\r\n color: rgb(14, 13, 13);\r\n}\r\n.active,\r\nul li:hover {\r\n border-top: 2px solid orange;\r\n border-bottom: 2px solid orange;\r\n}\r\n\r\n","answerCount":2,"upvoteCount":0,"suggestedAnswer":[{"@type":"Answer","text":"Hold on... Let me take out my crystal ball, i would see your codes then....🔮","upvoteCount":5},{"@type":"Answer","text":"Please show us your code.\nWe don't know what's the mistake or problems","upvoteCount":3}]} }
0

how tp make hamburger menu in html , css , js?

i have tried a lot but its not working , hamburger is showing but js is not working please tell some code <-----html-----> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Hey! Geek</title> <link rel="stylesheet" href="/css/style.css" /> <link rel="shotcut icon" href="/images/favicon.svg" type="img/svg" /> </head> <body> <header> <nav id="navbar"> <img src="/images/Logo_Kanish.svg" alt="" id="logo" /> <ul class="nav_links"> <li><a href="index.html" class="active">Home</a></li> <li><a href="/pages/">Blog</a></li> <li><a href="/pages/">Videos</a></li> <li><a href="/pages/">About</a></li> <li><a href="/pages/">Feedback</a></li> </ul> <div class="burger"> <div class="line"></div> <div class="line"> <button id="bbb" onclick="hide">h</button> </div> <div class="line"></div> </div> </nav> </head> <script src="/js/index.js"></script> </body> </html> <----css----> @import url("https://fonts.googleapis.com/css2?family=Cutive&display=swap"); * { margin: 0; padding: 0; box-sizing: border-box; font-family: "Cutive", serif; } a { text-decoration: none; text-transform: capitalize; color: rgb(255, 253, 253); } header { width: 100%; height: 12vh; position: relative; margin-top: 8px; } #navbar { width: 100%; height: 15vh; display: flex; justify-content: space-around; align-items: center; position: absolute; } #logo { height: 20vh; width: auto; } #navbar ul li { list-style: none; display: inline-block; padding: 0 15px; } #navbar ul li a { text-decoration: none; text-transform: capitalize; color: rgb(14, 13, 13); } .active, ul li:hover { border-top: 2px solid orange; border-bottom: 2px solid orange; }

20th Jul 2020, 6:44 AM
Kanish Kumar
Kanish Kumar - avatar
2 Antworten
+ 5
Hold on... Let me take out my crystal ball, i would see your codes then....🔮
20th Jul 2020, 6:59 AM
Calviղ
Calviղ - avatar
+ 3
Please show us your code. We don't know what's the mistake or problems
20th Jul 2020, 6:45 AM
Arctic Fox
Arctic Fox - avatar