Issue with the display of the vertical dropdown menu on the website

I currently have a vertical and horizontal menu in the header section. The vertical menu needs to display submenus as dropdowns on click event, but I am facing an issue with the More Menu under the vertical menu. You can see the problem in this image: https://i.sstatic.net/aarAI.png

You can view the Codepen example here: https://codepen.io/KGuide/pen/jOEpzQo. In the code provided, the submenu items for Media should be displayed under Media, but they are showing at the bottom. How can I fix this layout issue based on the image shown?

    <div class="menu-w">
  <a href="">Menu One</a>
   <a href="">Menu Two</a>
  <a href="">Menu Three</a>
  <a href="">Menu Four</a>
</div>

<div class="menu-w">
  <a href="#homeSubmenu" data-toggle="collapse" aria-expanded="false" class="dropdown-toggle">More Menu</a>
  <ul class="collapse list-unstyled" id="homeSubmenu">
    <li>
      <a href="#pageSubmenu" data-toggle="collapse" aria-expanded="false" class="dropdown-toggle">Media</a>
      <ul class="collapse list-unstyled" id="pageSubmenu">
        <li>
          <a href="#">News</a>
        </li>
        <li>
          <a href="#">Video Gallery</a>
        </li>
        <li>
          <a href="#">Blog</a>
        </li>
      </ul>
    </li>
    <li><a href="#">Directory</a> </li>
    <li><a href="#">Contact</a> </li>

  </ul>
</div>

Answer №1

To fix the issue, simply delete the .list-unstyled class from the #pageSubmenu ul

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Masonry is not compatible with Bootstrap 3

Can someone help me figure out how to make Masonry work with my Bootstrap grid columns? Step 1 - First, I included the Masonry script in my <head> like this : <script src="http://cdnjs.cloudflare.com/ajax/libs/masonry/3.1.5/masonry.pkgd.min.js"& ...

What is the process behind the creation of the class or id fields in HTML for Gmail and Quora? How are these

When using Gmail: <tr class="zA yO" id=":1t4"> While on Quora: <span id="ld_zpQ1Cb_27965"> What is the purpose behind this and what specific tool do they employ to achieve it? ...

What methods does DevTools offer for identifying the font used in an SVG?

Can anyone help me identify the font used in an SVG marker displayed on a Google Maps surface? I am specifically referring to the number 9 on a blue marker in this codepen. The label has these properties: label: { text: "9", color: "white", f ...

How can you center everything when working with child divs of varying dimensions?

I managed to get the divs to stack correctly, but I'm having trouble centering the children. The canvas and another div that serves as my input layer are the elements I am working with. The input layer is positioned on top of the canvas, covering the ...

Monitoring WooCommerce order submissions through AJAX

I'm exploring the world of Ajax for the first time. My goal is to submit an order tracking form and show the results using AJAX. I attempted to use Ajax to display the results within div track_result. The issue I'm facing is that the following ...

It is not possible to submit a form within a Modal using React Semantic UI

I am working on creating a modal for submitting a form using React semantic UI. However, I am encountering an issue with the submit button not functioning correctly and the answers not being submitted to Google Form even though I have included action={GO ...

What is the correct way to retrieve a JSON object instead of getting [Object object]?

Creating a basic web scraper integrated with mongoDB. Even though the API returns the JSON object in the correct format, when trying to append it to a bootstrap card on the page, I'm getting [Object object]. Below is my JavaScript code running on th ...

Automatically updating CSS file in progress

Is there a way to have CSS changes automatically update on my template without requiring me to manually refresh the page? I've noticed this question being asked multiple times, but none of the solutions provided seem to work for me. I attempted usin ...

Responsive HTML CSS Div with Bootstrap styling

Currently, I have some div elements that display nicely on desktop and tablet devices. However, the issue arises when the view is switched to mobile, as the elements appear disorganized and do not adjust appropriately. My goal is to have these elements au ...

Storing values from a content script into textboxes using a button press: a simple guide

I am new to creating chrome extensions and currently utilizing a content script to fetch values. However, I am facing difficulty in loading these values into the popup.html. Here is the code snippet: popup.html <head> <script src ...

Customize attributes for dynamic elements

Is there a way to assign attributes to dynamically added buttons independently? I've encountered an issue where changing one attribute binds all button types together. My goal is to assign {type:Submit} to the first button, {type:Reset} to the second ...

I seem to be having trouble getting my style to work properly with Material UI's makeStyles

I am experiencing an issue with Material-UI makeStyles not working properly. I am trying to apply my CSS style but it doesn't seem to be taking effect. I suspect that Bootstrap or MaterialTable might be causing this problem. While Bootstrap4 works fin ...

Tips for incorporating line breaks into GridList components with dynamic tiles in AngularJS

I've implemented Grid List(dynamic tiles) in my AngularJS project and tried using the <br/> tag, but it doesn't seem to be functioning as expected. Below is a snippet of the code: <div ng-controller="gridListDemoCtrl as vm" flex="" ng- ...

"Troubleshooting: Why isn't my jQuery AJAX POST request successfully sending data to

Here is the jQuery code snippet that I am currently working with: $("#dropbin").droppable( { accept: '#dragme', hoverClass: "drag-enter", drop: function(event) { var noteid = "<?=isset($_POST['noteid']) ? ...

Why isn't the image showing up as a list style?

I can't seem to get the image to show up on my page. Can anyone help me figure out what's wrong? ul li { background-image: url(logo.png); background-repeat: no-repeat; padding-left: 0px; } This is what I'm currently seeing: This is what ...

Getting rid of the arrow icons in a Material UI TextField

I am facing a challenge with removing the up and down arrow icons from a Material UI TextField that I adjusted using the Material UI documentation (https://material-ui.com/components/autocomplete/#autocomplete) Highlights section. After trying various sol ...

Position the input alongside the icon

I am looking to enhance my bootstrap input field by adding an eye icon: https://i.sstatic.net/Lin1W.png <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" /> <link href="https://cdn ...

Steps for aligning the upper rectangular text in the center of the larger rectangular border

https://i.stack.imgur.com/7yr5V.png I was aware of a particular element in html that had text positioned in the upper left corner, but my knowledge didn't go beyond that. Should I be adjusting the translation on both the X and Y axes based on the par ...

React Native tutorial: Changing button color on press

When a user clicks on the TouchableOpacity element, I want to change the color of the button from the default gray to blue. Initially, the 'checked={this.state.newProjects}' newProjects variable is not present in the state, so when clicked it sho ...

What is the reason for the additional line being generated?

Can anyone explain why there is an extra line being produced here? I came across another question where it was mentioned that this issue is not due to CSS but rather caused by HTML. Why is that? This is completely new to me, and I'm curious as to wh ...