+ 1

Why is my dropdown button when clicked not showing the content of the dropdown-items?

Why is my dropdown button when clicked not showing the content of the dropdown-items? On a larger screen the nav link items show as a specified to show on a horizontal right side of my navbar. But on a smaller screen width where the hamburger menu suppose to show up a clickable button, nothing comes up. https://code.sololearn.com/W8ul7M3lU8gu/#

24th Dec 2021, 8:39 AM
DN Josh
DN Josh - avatar
9 Answers
+ 1
It is data-bs-toggle = "collapse" not data-bs-toggler Keep learning & happy coding :D
24th Dec 2021, 9:23 AM
SoloProg
SoloProg - avatar
+ 1
SoloProg thanks. It works. But I have another issue. My hamburger icon is not visible
24th Dec 2021, 12:48 PM
DN Josh
DN Josh - avatar
+ 1
add class name "navbar-light" in nav tag. <nav class="navbar navbar-light navbar-expand-lg bg-success navbar-warning p-2" and require the use of 1 JavaScript library. bootstrap.min.js or bootstrap.bundle.min.js
24th Dec 2021, 1:28 PM
SoloProg
SoloProg - avatar
+ 1
If you the button to work remove this line: script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.min.js"
24th Dec 2021, 5:26 PM
SoloProg
SoloProg - avatar
+ 1
You could use this in the button class or your website: bg-white text-white border border-white
25th Dec 2021, 3:52 PM
SoloProg
SoloProg - avatar
+ 1
You can change the color with: navbar-light navbar-dark
26th Dec 2021, 5:25 PM
SoloProg
SoloProg - avatar
0
I've done that. But my button is having a dark line. I want it to be white color
24th Dec 2021, 9:28 PM
DN Josh
DN Josh - avatar
0
How can I code a cartoon
25th Dec 2021, 9:54 PM
Ikechukwu Daniel
Ikechukwu Daniel - avatar
0
SoloProg i don't want the the border to be white. I only wanted the three hamburger bars to show white.
26th Dec 2021, 5:07 AM
DN Josh
DN Josh - avatar