Dropdown sup menu inside my page not working


#1

greetings

I have tried many times to fix it as I’m a rookie with these stuff but I always fail to make it work

my problem is that I’m trying to make a dropdown menu with 2 items that contains sub menu to the right or left with other branches on it

but I cant get it to work anyway

here is the code I’m working with

        <button class="navbar-toggler navbar-toggler collapsed" type="button" data-toggle="collapse"
            data-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
            <li class="animated-icon menu-cross-s">
                <li class="ani"></div>
            </div>
        </button>
		
        <a class="collapse navbar-collapse" id="navbarCollapse">
            <ul class="navbar-nav ml-auto mr-lg-5">
                <li class="nav-item">
                    <a class="nav-link" href="index.html">Home</a>
                </li>
                 <li><a class="nav-link"<a href="#">Products </a>
                 <ul> 
                    </li>							
                    <li><a class="nav-link"<a href="#">Careers</a>
                        <ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
                            <li><a class="nav-link"<a href="#">test1</a></li>
                            <li><a class="nav-link"<a href="#">test2</a></li>
                            <li><a class="nav-link"<a href="#">test3</a></li>
                        </ul>
                    
                    </li>
                </ul>
                  <li><a class="nav-link" href="About/index.html">About </a>
                
                       
            
            </li>
            <li><a class="nav-link" href="#">Service</a></li>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="Watch/index.html">Watch</a>
                </li>
            </ul>
        </ul>
    </nav>
</div>

anyonbe can find out whats wrong with it?


#2

Hello @boardninja20312,

I can suspect you are using bootstrap 4 framework in order to make the dropdown menu. You could try to sketch it first and share the picture here so we can guide you on what you would have to do in order to accomplish it.

So far, what you want to do is something like this:
sample
Right?


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.