What steps can be taken to resolve overlapping issues with Bootstrap navigation bar?

Encountering an issue with my bootstrap side nav.

Every time I try to add content, it just overlaps on top of the Nav bar.

You can view the problem here -

What I want is for the content to appear to the right of the navbar. I've attempted adding rows/columns/containers but have been unsuccessful in getting it to work properly.

Can anyone pinpoint where I might be making a mistake?

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>

<head>
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
  <link rel="stylesheet" type="text/css" href="stylesheet">
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
  <script type="text/javascript" src="js"></script>
  <script src="https://use.fontawesome.com/c6d65aa6d0.js"></script>
  <meta http-equiv="content-type" content="text/html; charset=windows-1250">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta name="generator" content="PSPad editor, www.pspad.com">
  <title>Tools</title>
</head>

<body>


  <!-- Nav bar, Using bootstrap -->
  <div class="nav-side-menu">
    <div class="brand">Brand Logo</div>
    <i class="fa fa-bars fa-2x toggle-btn" data-toggle="collapse" data-target="#menu-content"></i>

    <div class="menu-list">

      <ul id="menu-content" class="menu-content collapse out">
        <li>
          <a href="#">
            <i class="fa fa-dashboard fa-lg"></i> Dashboard
          </a>
        </li>

        <li data-toggle="collapse" data-target="#products" class="collapsed active">
          <a href="#"><i class="fa fa-gift fa-lg"></i> UI Elements <span class="arrow"></span></a>
        </li>
        <ul class="sub-menu collapse" id="products">
          <li class="active"><a href="#">CSS3 Animation</a></li>
          <li><a href="#">General</a></li>
          <li><a href="#">Buttons</a></li>
          <li><a href="#">Tabs & Accordions</a></li>
          <li><a href="#">Typography</a></li>
          <li><a href="#">FontAwesome</a></li>
          <li><a href="#">Slider</a></li>
          <li><a href="#">Panels</a></li>
          <li><a href="#">Widgets</a></li>
          <li><a href="#">Bootstrap Model</a></li>
        </ul>


        <li data-toggle="collapse" data-target="#service" class="collapsed">
          <a href="#"><i class="fa fa-globe fa-lg"></i> Services <span class="arrow"></span></a>
        </li>
        <ul class="sub-menu collapse" id="service">
          <li>New Service 1</li>
          <li>New Service 2</li>
          <li>New Service 3</li>
        </ul>


        <li data-toggle="collapse" data-target="#new" class="collapsed">
          <a href="#"><i class="fa fa-car fa-lg"></i> New <span class="arrow"></span></a>
        </li>
        <ul class="sub-menu collapse" id="new">
          <li>New New 1</li>
          <li>New New 2</li>
          <li>New New 3</li>
        </ul>


        <li>
          <a href="#">
            <i class="fa fa-user fa-lg"></i> Profile
          </a>
        </li>

        <li>
          <a href="#">
            <i class="fa fa-users fa-lg"></i> Users
          </a>
        </li>
      </ul>
    </div>
  </div>

  <div class="row-one">
    <div class="container-fluid">

      <div class="row" style="margin-top:5%;">

        <div class="col-lg-4 col-md-4 col-sm-6 col-xs-12">
          <ul class="list-group features-box">
            <li class="list-group-item features-box text-center">
              <h4>Number of Hosts</h4>
              <span>.</span>
            </li>
          </ul>
        </div>

        <div class="col-lg-4 col-md-4 col-sm-6 col-xs-12">
          <ul class="list-group features-box">
            <li class="list-group-item features-box text-center">
              <h4>Hosts Online</h4>
              <span>.</span>
            </li>
          </ul>
        </div>

        <div class="col-lg-4 col-md-4 col-sm-6 col-xs-12">
          <ul class="list-group features-box">
            <li class="list-group-item features-box text-center">
              <h4>Hosts Offline</h4>
              <span></span>
            </li>
          </ul>
        </div>

      </div>
    </div>
  </div>

Answer №1

For the div with the class "row-one", you can add the "pull-right" class and apply the following CSS:

.row-one.pull-right {
    width: calc(100% - 300px);
}

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

The paragraph tag remained visible despite the use of the hidden display property

Can you help me figure out why my code isn't working with .d-none .d-sm-block? <div class="container"> <div class="row row-content align-items-center"> <div class="col-12 col-sm-12"> <h2>heading 1&l ...

Columns that can be resized in a right-to-left (

Whenever I use RTL, the columns behave erratically when resizing... I have implemented colResizable. You can see an example here: http://jsfiddle.net/r0rfrhb7/ $("#nonFixedSample").colResizable({ fixed: false, liveDrag: true, gripInnerHtml: "<d ...

Tips on implementing polymer.js to toggle the visibility of an element

On my HTML page, I have two different paper-card elements: <paper-card done> <paper-card> In addition, there is a button: <paper-icon-button icon="menu" on-tap="_show"></paper-icon-button> I am trying to utilize the _show fun ...

Having trouble with the functionality of JQuery drop feature?

As I delve into implementing drag and drop functionality with JQuery, I encounter a peculiar issue. I have set up 3 'draggable' divs and corresponding 3 'droppable' divs. The intended behavior is for each draggable element to be accepte ...

Osclass Website Alert: Multiple H1 tag Issue Detected

I operate a website called MyMobPrice and utilize OsClass for its functionality. However, I am encountering an error on each product page stating "More than One H1 Tag found." The issue lies within the two sets of H1 codes designed for desktop and mobile ...

Reduce image_tag into a single

Is there a way to combine all image_tag picture tags into one for compression? I'm currently using Nivo slider in the header and would like to avoid writing out each image tag in the layout page. Can you suggest any solutions? Thanks in advance. ...

How to dynamically update the value of a TextBoxFor in asp.net MVC when a text box value changes

I need some assistance with a specific topic. In my scenario, I have two textboxes on my view. I want the value generated in my controller to be applied to textbox2 when there is a change in textbox1. For instance, if I enter a username in textbox1, textb ...

Instead of modifying the selected class, jQuery generates inline styles

Utilizing the following code to dynamically create a class: $("head").append('<style type="text/css"></style>'); var newStyleElement = $("head").children(':last'); newStyleElement.html('.move{transform: translateX(1 ...

What are the best ways to enhance change detection efficiency in Angular?

One issue I am facing involves two components and a service. It appears that when moving from the view of a routed component to elements in different components like a matMenu and an input field, the routed component seems to refresh itself. This becomes p ...

React not displaying images with relative paths

In the past, I used to import images in React like this: import person from '../images/image1.png' And then use them in my code like this: <img src={person} alt="" /> Now, for some reason, I want to directly specify the image pa ...

Chrome not showing animated FontAwesome icons within anchor elements

Need help with animating a fontawesome icon? I ran into an issue where the animation works perfectly inside a span element, but it stops working when placed inside an anchor tag in Chrome. Interestingly, it still works fine on IE. I am currently utilizing ...

CSS transitions/transforms are failing to impact the necessary elements

I'm currently grappling with advanced transitions and transforms, and encountering some challenges with a section I'm developing. I've managed to get everything working as needed, except for the fact that there is an h5 element positioned ov ...

Drop into sleek navigation with nested tabs - Twitter Bootstrap

Is it possible to create a dropdown menu using Bootstrap? I want to make one but don't know where to start. Currently, I only have the following code snippet: <li data-toggle="dropdown"><a href="#">Vehicles</a> <ul class="dr ...

JavaScript can be used to create dynamic frames within a

Can anyone help identify the issue in my code? frame 1 <script type="text/javascript"> var Clicks = 0 ; function AddClick(){ Clicks = Clicks + 1; document.getElementById('CountedClicks').innerHTML = Clicks ; } localStorage.setItem(' ...

Execute a script upon page load

Is there a way to trigger a script tag <script> immediately upon the website loading? I've experimented with various codes, but haven't found one that meets my needs. ...

Displaying a banner at the bottom of a React page

I need to display a banner with the text "All items..." on every page. Currently, I have set the position attribute to fixed, but the banner is aligned to the left and I want it to be centered horizontally instead. Below is my code snippet: export const Ba ...

Styling with CSS: Using a Base64 Encoded Image in the Background URL

Can a Base64 encoded image be loaded as a background image URL without exposing the actual encoded string in the page source? For example, if a Node API is used to GET request at "/image", it returns the serialized Base64 data. res.json("da ...

Struggling to forward JSON data via AJAX to Django without relying on jQuery

My goal is to utilize AJAX in conjunction with Django, but I want to achieve this without relying on jQuery. So far, I have made progress in sending URL encoded data from AJAX to Django successfully. However, I am currently facing an issue where I am unabl ...

Explain to me the functioning of "return render(request, 'path/path')" in Django

Kindly provide a detailed explanation on the functionality of "return render(request, 'path/path')" in a specific views.py file within Django. MYcode: (views.py) from django.shortcuts import render from basic_app.forms import UserForm,UserProfi ...

Position the Mui Card Action at the Upper Right corner

Struggling to align a checkbox within a MUI card to the top right? It has been a challenge for me as well. Here is an image of my current layout https://i.sstatic.net/BwH9o.png. I really want that button to be placed in the top right corner, even when the ...