I am currently designing a menu with Bootstrap, but for some reason, the submenu items are not showing up.
https://i.stack.imgur.com/qZqyf.png
After carefully reviewing the HTML code multiple times, I am unable to identify any issues. I am now questioning whether there might be something missing in my CSS.
.navbar-nav li:hover>ul.dropdown-menu {
display: block;
}
.dropdown-submenu {
position: relative;
}
.dropdown-submenu>.dropdown-menu {
top: 0;
left: 100%;
margin-top: -6px;
}
/* rotate caret on hover */
.dropdown-menu>li>a:hover:after {
text-decoration: underline;
transform: rotate(-90deg);
}
The expected output should look like the image shown here:
https://i.stack.imgur.com/QSQtm.png
I am puzzled by why the submenu items are not visible even though everything seems correct in the code.