I planned to display the toggle bar on large screens ranging from 992 to 1200 pixels using bootstrap. However, it is currently only visible on screen sizes below 992 pixels

I'm facing an issue where the toggle bar is not displaying on large screens, only on medium size and below.

While attempting to use display attributes to hide some components under the toggle bar on larger screens, I could not get the toggle bar itself to appear on these screens.

Additionally, I would like to identify the class associated with the toggle bar so that I can manually style it.

<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" rel="stylesheet" />
<div class="header-bottom  header-sticky">
  <div class="container-fluid">
    <div class="row align-items-center">
      <!-- Logo -->
      <div class="col-xl-1 col-lg-1 col-md-1 col-sm-3">
        <div class="logo">
          <a href="/"><img src="{% static 'assets/img/logo/logoimage.jpg' %}" alt=""></a>
        </div>
      </div>
      <div class="col-xl-6 col-lg-8 col-md-7 col-sm-5">
        <!-- Main-menu -->
        <div class=" f-right d-none d-xl-block">
          <nav>
            <ul id="navigation">
              <li><a href="/">Home</a></li>

              <li class="hot"><a href="/category/">Products</a>
                <ul class="submenu">
                  <li><a href="/category/"> Categories </a>
                    <ul class="submenu">
                      {% for i in types %}
                      <li><a href="/category/#{{i.type}}"> {{i.type}} </a></li>
                      {% endfor %}


                    </ul>
                  </li>

                </ul>

              </li>
              <li><a href="/contact/">Contact</a></li>
              <li class="d-block d-lg-none">

                <a href="cart.html"><i class="fas fa-shopping-cart">Cart</i></a>

              </li>
              <li class="d-block d-lg-none"> <a href="/signup/" class="btn header-btn">Sign Up</a>
              </li>
              </li>
              <li class="d-block d-lg-none"> <a href="/login/" class="btn header-btn">Login</a>
              </li>



            </ul>
          </nav>
        </div>
      </div>
      <div class="col-xl-5 col-lg-3 col-md-3 col-sm-3 fix-card">
        <ul class="header-right f-right d-none d-xl-block d-flex justify-content-between">


          <li class="d-none d-xl-block">
            <div class="shopping-card">
              <a href="cart.html"><i class="fas fa-shopping-cart"></i></a>
            </div>
          </li>
          <li class="d-none d-xl-block"> <a href="/signup/" class="btn header-btn">Sign Up</a>
          </li>
          </li>
          <li class="d-none d-xl-block"> <a href="/login/" class="btn header-btn">Login</a>
          </li>
        </ul>
      </div>
      <!-- Mobile Menu -->
      <div class="col-12">
        <div class="mobile_menu d-block d-lg-none"></div>
      </div>
    </div>
  </div>
</div>
</div>

The bootstrap version being used is: 4.1.3

Answer №1

Experiment by including the classes navbar navbar-expand-xl within the opening <nav> element.

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

Capturing Vuejs data for various pathways

Currently, I am developing a Vue file that contains the following code: <router-link :to="{name: 'detailed'}" tag='li' @click='getData("test")'> testing</router-link> In the script section, the code looks like th ...

How to display a page outside the router-outlet in angular 4

I'm currently developing an angular 4 application and I am trying to figure out how to load the login.page.ts outside of the router-outlet This is what my home.component.html file looks like: <div class="container"> <top-nav-bar></ ...

The way images appear can vary between desktop and mobile devices

I am in the process of creating a photography website with a simple goal of displaying images down the page one after another. However, I am encountering issues with uniform display across various desktop and mobile platforms. The site appears perfect on i ...

Selenium on Sauce Labs does not successfully load the page in Firefox after clicking

An issue has arisen where a test that functions properly with selenium webdriver locally is timing out when executed remotely on saucelabs.com. Notably, the test runs smoothly for Chrome in both local and remote scenarios. The problem seems to lie in the ...

What steps do I need to take to ensure that this Regex pattern only recognizes percentages?

I am attempting to create a specific scenario where I can restrict my string to three digits, followed by a dot and two optional digits after the dot. For example: 100.00 1 10.56 31.5 I've developed a regex pattern that allows me to filter out any ...

After adding npm modules, the React web page fails to compile

I've encountered a challenge with my webpage that includes a button, constructed using react. My goal is to trigger some JavaScript code upon clicking the button. The specific code I wish to execute involves an npm module that I've developed whic ...

Utilizing jQuery to manage asynchronous tasks, such as executing AJAX requests, handling promises, and using deferred

Exploring My jQuery Plugins: (function ($, window, document, undefined) { $.fn.loadPageContent = function (url, dataToSend) { url = url || window.location.href; dataToSend = dataToSend ? dataToSend : {}; return $.post(url, data ...

Troubleshooting Problems with Ruby Arrays, JavaScript, and JSON

I am facing a challenge with rendering a highcharts plugin in my rails application. I suspect it could be related to the sql queries fetching data from the database and converting them into a ruby array that the javascript code fails to interpret correctly ...

Create a new function that generates a unique div element

How can I replicate this function in a different container? function goto(id, t){ // Move to the designated div id using animation $(".headbox-wrapper").animate({"left": -($(id).position().left)}, 600); // Remove the "active" class from a ...

What is the best way to add a dropdown menu in front of a button?

I have a div containing a dropdown list of items and I want the user to be able to add more dropdown lists by clicking a button. Although I managed to do this, the issue I'm encountering is that the new list gets added after the button instead of ben ...

When I place this in the js directory, the function does not seem to function properly

I have an add.ctp file where I can add multiple rows. However, when I place the addNumber function in app/webroot/js, it does not work. Why is that? Here is a snippet from my view file (add.ctp): <table id="mytable"> <tr id="number0" sty ...

The initial toggle switch is not visible

https://i.sstatic.net/6BMaY.png After running this code, I'm facing an issue where the first toggle switch is not visible, while the second one displays and functions correctly. I'm unsure about what went wrong in the code. Can someone please as ...

Locate the class within the entire page and eliminate a different div

I'm facing an issue where I need to remove the .box class when the .test div is added with the .active class. I've attempted to do this but it doesn't seem to be working. Can anyone provide some insight into what might be causing this proble ...

Express.js and Node version 0.10.29: The Mystery Post

Having trouble with sending JSON data to an express server and receiving 'undefined' for req.body.name. This is how the configuration is set up: const express = require('express'); const app = express(); app.configure(function(){ ...

Sending information to a Google spreadsheet using JavaScript executed in a web browser

Currently, I am developing a web application that requires the user to be able to upload data directly to their own Google spreadsheet. Initially, I attempted to utilize the Google APIs Client Library for JavaScript but found that it does not include supp ...

Prevent a div from scrolling once it reaches the end of its content, while allowing the other div to continue

I am trying to make the col-md-4 column stop scrolling once it reaches the end of the content, similar to the right sidebar on Facebook. I have attempted using jQuery to add a fixed position when it reaches the bottom, but it is not working as expected. Th ...

Define class attributes within a TypeScript callback function

I have encountered an issue with my method involving a subscription to an event from a pub sub messaging service. The problem arises when I attempt to define a class property within the callback function, only to find that the property returns as undefin ...

Is it impossible to adjust the background color?

https://i.sstatic.net/9uKBt.png <div class="container" ng-app="sortApp" ng-controller="mainController"> <form> <div class="form-group"> <div class="input-group"> ...

Access a single document from Firestore:

How can I fetch a single document from Firestore in Angular 4? I am not looking for a list of documents in the collection, I already know how to do that. Let's say I have a key-value pair of the document and I want to retrieve it using Angular 4. i ...

Closing tag in jQuery

In my script, I am using a div tag within the jquery code. However, whenever the div tag appears in the jquery code, it automatically closes the script tag and breaks the jquery code. For example, consider the following code: <script>var b = 25;var ...