Col-*-Bootstrap does not function in the presence of col-*-*, even though it is expected to be the primary choice

UPDATE: The latest version of Bootstrap seems to be working fine for me.

I'm currently developing a website using Bootstrap 4. I've noticed that col-xs-* has been deprecated in 4.0 and the default from 0px up is now col-*. I have specified "col-6 col-md-12" but it always displays as 12 columns wide.

<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet" type="text/css">


<div class="container-fluid" style="height: 100%">
  <div class="row trenner">
    <div class="col-6 col-md-12 logout">
      <button class="logout"><i class="fa fa-sign-out-alt"></i><label class="btnLbl">Logout</label></button>
    </div>
    <div class="col-6 text-right wagenMobil">
      <ul id="drop-dummy">
        <button id="cart-button"><i class="fas fa-shopping-cart"></i></button>
      </ul>
    </div>
  </div>

Screenshot on small Device

If I specify only "col-6" it works properly.

When I use "col-6 col-sm-6 col-md-12" it remains 12 columns wide until the breakpoint for sm, then changes to 6 and returns to 12 when the md breakpoint is reached.

"col-xs-*" is no longer effective with Bootstrap 4.

How can I make my column appear as 6 wide on xs devices?

Answer №1

The issue was triggered by Chrome's responsive view feature. Despite resizing the window, all elements maintained a calculated width of 980px as shown in the screenshot.

Disabling the responsive view in the developer options and manually resizing the browser window resolved the problem.

PS: This nearly drove me crazy thinking it was a bug.

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

What is the best way to align three images in the center on a single line below the header text using html and css?

I've been working on centering three images under the h1 text, but I'm struggling to figure it out. I tried using div to wrap all the elements and align them with text-align. I also gave each image its own ID and attempted to position them using ...

Generating a dataframe with cells that have a combination of regular and italicized text using the sjPlot package functions

I've been trying to set up a basic data table where the genus name in the "Coral_taxon" column is italicized, but the "spp." part following it remains lowercase. I thought of using the expression() function for each row in "Coral_taxon," but so far, I ...

Is it possible to automatically refresh a webpage with the same URL when accessed on the same server?

Is there a way to trigger a URL page refresh using JS code located on the same server? For example, I have a URL page open on multiple devices connected to the same server. How can I ensure that when I click 'Update,' the page refreshes simultan ...

The overflow issue arising from the off-canvas menu is causing a clash with the par

I am currently working on a website project and have encountered a peculiar issue. I am using parallax for background images in two sections of the site. The parallax effect works fine without setting an overflow rule, but when I add it, the parallax effec ...

Ways to set the minimum width of a div depending on its contents

As I work on my website, I encountered an issue with a div containing a table. The div expands to full width, but when I resize the screen, it shrinks causing the content to overlap. I am looking for a solution where the minimum width of the div adjusts b ...

I seem to be encountering a recurring issue with a jinja variable when trying to create an onclick function

Why do I keep encountering this error message: Uncaught SyntaxError: missing ) after argument list (at bestellen:60:105) This is the HTML code causing the issue: <div class="gerechten"> {% for gerecht in gerechten %} <div ...

Two tables are refusing to stack on top of each other

I have encountered an issue while trying to construct a website using bootstrap. The problem lies in the layout of two tables that appear stacked on top of each other instead of being positioned next to each other. Despite my attempts at various solutions, ...

Looking to extract latitude and longitude data using an Autocomplete Address Form

I am currently attempting to utilize Google Maps autocomplete feature in order to save latitude and longitude. Unfortunately, I am encountering difficulties in making this functionality work as intended. Given that I am unfamiliar with the Google Maps API, ...

Arrange a stationary child in relation to the grandparent element

I created a small window within a browser window, containing an even smaller window with auto-scrolling text. However, I need some text in the smaller window to remain static and not scroll. Therefore, I used position_fixed which is absolutely related to ...

What is the reason for padding influencing the overall dimensions?

The result I achieved was unexpected. After realizing that the text was positioned above the green markers, I decided to add some internal padding to the three pink containers. To my surprise and disappointment, when I made this adjustment, it ended up lo ...

Display a unique and unconventional image as a dynamic full-screen background, ensuring the entire image is visible using React/RedwoodJS

Looking for a somewhat unusual solution here - I want to use an image as a background with all edges of the picture visible at all times. Typically, I would use the "cover" setting for this, but that doesn't achieve what I need (image included). After ...

Unusual behavior exhibited by dynamic code in iframe

When trying to retrieve a dynamic height iframe, I implement the code below. In the <head> area <script language="javascript" type="text/javascript"> function adjustIframe(obj) { obj.style.height = obj.contentWindow.document.body.scrollHeight ...

The .ogv video file type does not seem to be functioning properly within the HTML5 video tag on Firefox

Hello, I'm encountering some issues with playing the .ogv file in Firefox. If you could take a look at the link , that would be greatly appreciated. I believe my HTML5 video tag syntax is correct as it's working fine on other browsers. Thank you ...

Challenges with exporting dynamically generated divs using jspdf in an Angular 2 project

I have been utilizing the jspdf library to print div elements in my current project. But I recently discovered an issue where dynamic content within a div is not being printed correctly. Specifically, when incorporating simple Angular if statements, jspdf ...

Enhance the organization of your current webpage by incorporating three divs positioned side by side

I currently have a webpage set up, accessible here: https://plnkr.co/edit/5NWm4E868nXYyixd2SLv?p=preview The current layout looks okay, but I feel restricted in terms of customization. Therefore, I am interested in creating 3 divs where I can have more co ...

Adjusting the size of a button in HTML and CSS

Check out this code: /* custom button */ *, *:after, *:before { box-sizing: border-box; } .checkbox { position: relative; display: inline-block; } .checkbox:after, .checkbox:before { font-family: FontAwesome; font-feature-settings: normal; - ...

Extract HTML href links that correspond to a specific string from a given list of strings using Beautiful Soup

I am currently working on extracting specific URLs from a webpage that contains a list of various links. My goal is to only retrieve the URLs that match certain strings in a predetermined list. These strings are a subset of the text found within the links ...

Troubleshooting: CSS background opacity issue unresolved

I am having trouble getting a parent div to fill the screen with a transparent background. The code I'm using only results in a solid color background for the parent div. Here is the code snippet I have been working with: .outer { position: rela ...

Creating an Eye-catching Presentation: Tips for Adding Text to Your CSS3 Slideshow

I am currently in the process of creating a CSS3 slideshow with text for each image. I found inspiration from this example: . However, I made some modifications to make it responsive. Here is the HTML code I have used: <div id="slideshow"> < ...

Add extra space to the dimensions of the div by incorporating padding

Showing my issue with an accompanying image: I am looking for a solution to include padding in the width: 50%; calculation. Currently, the first div's width is actually 50% + 2em because the padding was not factored in initially. Is there a way to i ...