The large column in the Bootstrap 3.3.7 Grid system is malfunctioning

Having an issue with Bootstrap 3.3.7 Column large not behaving as expected, but strangely it works fine when I switch to Bootstrap 4. Can't pinpoint where the problem is originating from. Also, Bootstrap 4 changes the sizes of my text which is why I'm hesitant to upgrade.

All my Bootstrap links are correctly connected in my app without any problems. Need guidance on why Bootstrap 3.3.7 column large isn't functioning properly.

Here is a snippet of my code:

base.html

<html>

{% load static %}
<link rel="stylesheet" href=" {% static 'assets/css/main.css' %} " />
<link rel="stylesheet" href=" {% static 'assets/bootstrap/css/bootstrap.css' %} ">
<link rel="stylesheet" href=" {% static 'assets/bootstrap/css/bootstrap.min.css' %} ">
<link rel="stylesheet" type="text/css" href=" {% static 'assets/css/responsive.css'  %} ">
<script src=" {% static 'assets/js/jquery.js'  %} "></script>
<script src=" {% static 'assets/js/script.js'   %} "></script>

{% block content %}

{% endblock content %}

<div id="footer" class="container-fluid">
    <div class="row">
        <div class="col-lg-3 col-md-3 col-sm-3 col-xs-12">
            <h3> Get to know us </h3>
            <div>
                <label> Work with US </label>
                <label> Work with US</label>
                <label> Work with US </label>
            </div>
        </div>
        <div class="col-lg-3 col-md-3 col-sm-3 col-xs-12">
            <h3> Learn with US </h3>
            <div>
                <label>Work with US </label>
                <label> Work with US </label>

            </div>
        </div>

        <div class="col-lg-3 col-md-3 col-sm-3 col-xs-12">
            <h3> Work with US </h3>
            <div>
                <label> work with us </label>
            </div>
        </div>
        <div class="col-lg-3 col-md-3 col-sm-3 col-xs-12">
            <h3> Find us </h3>
            <img class="img-responsve" src=" {% static 'assets/images/facebook.png'  %} ">
            <img class="img-responsve" src=" {%  static 'assets/images/twitter.png'   %} ">
            <img class="img-responsve" src=" {% static 'assets/images/instagram.jpg'  %} ">
        </div>
    </div>
    <h4 class="text-center"> title Copyright 2017 all rights reserved </h4>
</div>

Below is another page that extends base.html:

{% extends 'index/base.html' %}


{% block content %}

<div class="wrapper">
    <div id="top_navbar" class="navbar navbar-default">
       <div class="container">
            <div class="navbar-header">
                <a class="navbar-brand"> title</a>
            </div>
            <div style="margin: 10px;" class="navbar navbar-right">
                <button class="btn btn-success"> 4648564864</button>
                <button class="btn btn-info"> Signup </button>
                <button class="btn btn-primary"> login </button>
            </div>
       </div>
    </div>

    <div class="container-fluid">
       <div class="col-lg-4">
           <div class="row">
               <div class="col-lg-6">
                   <h3 id="test"> Testing </h3>
               </div>
               <div class="col-lg-6">
                   <h3 id="test"> Testing  </h3>
               </div>
           </div>
       </div>
    </div>
</div>

{% endblock content %}

Concerned about Bootstrap 3.3.7 compatibility issues while other Django files function smoothly. Need assistance to resolve this confusion!

Answer №1

When the window width is too narrow, columns will stack on top of each other. For example, if you specify col-lg-6 but the window width is less than the defined lg breakpoint, the columns will be placed one above the other.

Bootstrap 3 and Bootstrap 4 use different breakpoints, leading to variations in how columns behave. (See Bootstrap 3 breakpoints and Bootstrap 4 breakpoints)

Consider using col-md-6 instead of col-lg-6 for a better design consistency.

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

Creating a display of divs that flow from left to right in each row, and then stacking the rows from bottom to top using CSS and jQuery

My current dilemma involves a collection of divs that must be displayed in a specific order, but with a rather intricate layout. Essentially, this is the structure of my HTML: <div> <div class="box">1 (first in list)</div> <di ...

Using the Chrome WebDriver for Selenium to interact with a text input element with dynamically changing IDs

I seem to be encountering difficulties with accessing an input element on a specific webpage. If the link has timed out, you can click on this following link: and then select the "RL_reactors" hyperlink to navigate to the page in question. On this page, ...

Error encountered during upload in Django: Ensure the image uploaded is valid

Seeking the most efficient method to upload images using Angular and Django rest. After combining various code snippets, I still encounter the following error: Upload a valid image. The file you uploaded was either not an image or corrupted. If anyone ...

Is it possible to Maintain a Constant Pixel Font Size while Allowing for Responsive Text Size?

When viewing a site like the mobile version of , I noticed that the text size adjusts responsively, but the active font-size remains constant at 34px. To see how this works on different screen sizes, check out this comparison. Even when changing the wind ...

conceal elements created with JQuery within an AJAX function

Is it possible to use jQuery and the $.ajax() method to submit a form, displaying only the result while hiding other elements on the page? I am looking to add a conditional in the Ajax method that will show the result if successful, hiding certain elements ...

How can I display real-time streams from multiple IP cameras on an HTML page using Flask and Python?

I am currently dealing with a collection of cameras and the corresponding URLs in RTSP format. I managed to create a simple script that extracts the camera URL from the camera_config JSON file, but now I'm facing the challenge of embedding these video ...

The issue of excessive vertical spacing occurring between two <div> elements, with one of them containing an <iframe> element, needs to be addressed

I am facing an issue with unwanted vertical spacing between two elements. One of them has a <p> element, and it seems like it's getting stuck there. The problem only arises on larger screens (> 15"), while it looks fine on smaller screens. Th ...

Django is unable to locate the template within the templates/app folder

For one of my projects, the template is searched at <project_root>/<app>/templates/ while in another project, it is searched in <project_root>/<app>/templates/<app>/ I'm curious, what does this dependency rely on? ...

How to use Python and JavaScript to make a WebElement visible in Selenium

I am currently facing an issue with uploading a PNG file using Selenium. The input element necessary for the upload process is visible to the user but not to Selenium. Following the suggestions in the Selenium FAQ, I tried using JavaScriptExecutor as shown ...

Transmit information using $broadcast when a button is clicked, and retrieve that information using $scope.$on

I am trying to create a function that will broadcast data from the server upon button click, and then navigate to a new route using $state.go('new-route'). In the controller of this new state, I want to retrieve the transmitted data. However, whe ...

Deploying a Django application involves a comprehensive process of scaling, configuring static files, and setting

I'm currently in the process of deploying my django app on a Linux Server, and I've run into some challenges that I need clarification on. After searching for days, I couldn't find answers that were specific or up-to-date. 1) The django doc ...

Adjust the width of a modal in Bootbox for a specific modal only

Currently, I am successfully using Bootbox 4 along with Bootstrap 3 on IE (IE 8 / IE 9) without any issues. In Bootstrap 3, it seems that you can adjust the modal width using CSS like this, but the drawback is that this change will apply to all modals: . ...

Is it possible to conceal the controls on the slick carousel?

Is there a way to prevent slick from automatically adding next and previous buttons? I've tried using CSS to hide them but it doesn't seem to work. <button type="button" data-role="none" class="slick-prev" aria-label="previous" style="displ ...

Troubleshooting Angular modal fade not functioning

I am facing an issue while trying to display a component called "Login", which belongs to the class "modal fade", from another component named "navbar". Despite my attempts to trigger it by calling data-bs-toggle="modal" data-bs-target="#LoginModal" from t ...

Websites without any prefixes in their URLs

Is it feasible to access all pages and their detail pages without any additional prefix? For example: ''' /vegetables /carrot --> (detail page for vegetables) /fruits /apple --> (detail page for fruits) ''' I have p ...

I am having trouble displaying the background on my website using css/html

I'm currently working on enhancing my website BJBGaming1.com, and I've encountered an issue with setting a background. Here's the code snippet I have: <!doctype html> <html class="no-js" lang="en"> <head> <meta charset= ...

When the button with an image is clicked, it will display a loading element

I have developed an application that heavily utilizes ajax, and I am looking to implement the following functionality: I would like to have a button with both text and an image. When this button is clicked, it should be disabled, and instead of the origina ...

Viewport height-responsive image not functioning as expected in Firefox browser

Is there a way to set an image to the 100% height of the browser window, with a small padding at the bottom, and have it centered on the page? I created an example in codepen that works well in Chrome and Safari, but not in Firefox. In Firefox, the image ...

JavaScript Error: Uncaught TypeError - The property 'remove' cannot be read because it is undefined

My modal window setup allows for opening two separate modals one after another, with the capability to close them individually (closing the second modal while keeping the first one active). (All the necessary code snippets are included below) let open_mo ...

Activate CSS element with a click

Is there a way to add a click event to a CSS class so that when it is clicked, it changes to a different class? I am specifically looking to change the character class on li items when they are clicked. Here is the code snippet: <!DOCTYPE html> <h ...