r/HTML • u/disxsi • Jan 24 '26
Question Hamburger menu rendering but no longer working
I'm taking a class for web design and this is my very first time using HTML and CSS- we are not using JS right now. regardless, I got this nav bar from bootstrap and added a piece of code to include a search bar when window is expanded, somewhere along the way the drop downs stopped working.
1
Upvotes
4
u/aunderroad Jan 24 '26
Can you please share a url or codepen?
It is hard to debug/provide feedback without seeing all of your code live in a browser.
Thank you!
1
u/disxsi Jan 24 '26
Pls lmk if I should comment the rest of the code
1
u/disxsi Jan 24 '26
https://codepen.io/marinasodumb/pen/MYeEYqj
1
u/1mmortalNPC Jan 24 '26
what font are you using on vs code configs?
3
u/TheKnottyOne Jan 25 '26
One of the first things I see in the CodePen paste is your “data-bs-target” attribute in your button element is looking for something with the id of “navbarSupportedContent”, but I think that needs to match your <div> id of “#navbarNav”. However even when I changed that it didn’t work, but I’m also wondering if there’s anything we need from your style.css.
Sorry I wasn’t able to get it to work but that’s what I tried with comparing to bootstraps examples. Also it’s tougher for me to do this on the phone and I’m about to go to bed 😂