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 Answers
+ 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