Navbar

My navbar is going to the div when i make the screen smaller. What am i doing wrong. https://codepen.io/Boeroe/pen/mdaNNwX
Boeroe
CodePen
mdaNNwX
...
4 Replies
Boeroe
BoeroeOP15mo ago
https://codepen.io/Boeroe/pen/LYqYRqW i fixed that problem only now the menu button doesnt work when i click on it
Mannix
Mannix15mo ago
1st it's let not Let 2nd it should be
menuicon.addEventListener('click', function(){
header.classList.toggle('open');
})
menuicon.addEventListener('click', function(){
header.classList.toggle('open');
})
or
menuicon.addEventListener('click', ()=>{
header.classList.toggle('open');
})
menuicon.addEventListener('click', ()=>{
header.classList.toggle('open');
})
not
menuiconToggle.onclick = function(){
header.classlist.toggle('open)');
}
menuiconToggle.onclick = function(){
header.classlist.toggle('open)');
}
Boeroe
BoeroeOP15mo ago
Thank you!
Want results from more Discord servers?
Add your server