Experiencing difficulties in arranging Bootstrap columns based on media queries

I am creating a layout for a website that requires 4 columns. When the screen is in desktop mode or wider than tablet width, it should show all 4 columns with the outer 2 being used for padding only. However, in mobile mode, the outer 2 columns should disappear and I need the middle two to switch positions. I attempted to set the 'col-' property to reverse when the width is below 480px, but it doesn't seem to be working as expected. I would appreciate it if someone could review my code.

  HTML
    <div id="inus1" class="fk-row row">
  <div data-text="text" align="center" id="inyb3" class="fk-col order-1">
  </div>
  <div align="center" id="i80rh" class="fk-col order-2 order-xs-2">
    <div id="ifo6l">
      <div id="iq1zf" class="fk-headline">Thank you for your purchase!
      </div>
      <div data-text="text" id="ihleo">Order {{orderId}}
        <div draggable="true" id="i6myy-2-2">
          <div draggable="true" id="ii502-2-2-2">
            <b data-text="text">
              <span data-text="text" id="ix3j4">Thank you {{firstName}} {{lastName}}!</span>
            </b>
          </div>
        </div>
      </div>
    </div>
    <iframe frameborder="0" type="map" name="map" address="" zoom="1" maptype="q" id="in2gu" src="https://maps.google.com/maps?&amp;z=1&amp;t=q&amp;output=embed"></iframe>
  </div>
  <div align="center" id="i33dp" class="fk-col order-3 order-xs-1">
    <table id="orderSummaryTable" class="w-100">
      <thead id="iweztk">
        <tr id="ikyi1h">
          <th colspan="3" id="i10uii">
            <span data-text="text" id="iqvl9r">Order Summary</span>
          </th>
        </tr>
        <tr id="ieggiv">
          <th id="inwrj">
            <span data-text="text" id="ipokfh">Item</span>
          </th>
          <th id="i259c">
            <span data-text="text" id="i5gfso">Quantity</span>
          </th>
        </tr>
      </thead>
      <tbody id="items-list">
        <tr>
          <td class="cell cell-items-list">
          </td>
        </tr>
      </tbody>
    </table>
  </div>
  <div align="center" id="ijiyf" class="fk-col order-4">
  </div>
</div>
  CSS (media query only)
    @media (max-width: 480px){
  #in2gu{
    width:615px;
    height:350px;
  }
  #i80rh{
    width:100%;
  }
  #i33dp{
    width:100%;
  }
  #inyb3{
    display:none;
  }
  #ijiyf{
    display:none;
  }
  #in2gu{
    width:615px;
    height:350px;
  }
}

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 implement CSS properties on Material UI components?

I've recently started exploring Material UI, but I'm having trouble understanding how the spacing properties function. I'm trying to utilize the "spacing" feature for various elements, but it appears that it only works for "Box" components a ...

Tips for creating Multi Level dropdown menus in Bootstrap v4.1

I have implemented the dropdown class and now I am trying to create a button dropdown that will display multiple child elements at one level of the dropdown. <div class="dropdown"> <button class="btn btn-secondary dropdown-toggle" type="button" ...

Restricting CSS Background Image Width to 960 Pixels

My CSS style is causing my background image to span across the whole screen instead of repeating within the 960px width of the body. body { width:960px; margin: 10px auto 10px auto; background-image:url(logo.png),url(backgroundimage.jpg); ...

Ways to create spacing between vertically stacked columns in Bootstrap

I have created a website using Bootstrap and PHP to display data from 18 categories in columns. The code for listing the categories in a single row is shown below: <div class="row"> <?php foreach($categories as $val){?> <div class="col ...

Having trouble getting the CSS URL to work when using a leading slash?

I am attempting to utilize a background-image with a "root-relative" path like this: background-image: url("/img/bg.jpg");. In Chrome, the property is showing correctly but the image does not appear. When I change it to http://localhost:8080/img/bg.jpg, t ...

Property registered in CSS dynamically

Is it possible to pass dynamic values when using the css registered property? For instance, in the code snippet below, how can I pass on the value ---numValue=35 to to{--num:}? @property --num { syntax: "<integer>"; initial-value: 0; ...

Display the chosen alternative in a Bootstrap dropdown menu

I am currently facing an issue with the dropdown list in my bootstrap menu. <li class="dropdown"> <a aria-expanded="false" aria-haspopup="true" role="button" data-toggle="dropdown" class="dropdown-toggle" href="#">Chose option<span class="c ...

Center the div element and adjust its scale to perfectly fit the screen

I have been struggling to optimize my website for mobile devices by centralizing the content display. When I access it on a mobile device through , there is excessive space below the content, forcing me to pinch zoom in order to read properly. How can I el ...

Is there a way to adjust the font size of a select option?

Looking to customize the appearance of a select option dropdown list. Wondering if it's possible to change the font sizes of individual options rather than keeping them all the same? For instance, having the default: -- Select Country -- displayed a ...

Hover Effects for CSS Info Boxes

I have a code snippet below for an info box I am working on. How can I adjust it so that when I hover over it, the green background fills the entire height instead of just 3/4 of the height? Any guidance on what may be causing this issue would be greatly ...

The issue with Bootstrap not functioning properly on the client side arises when Docker and Express.js are both

I'm running into some challenges while setting up a server using Docker with node.js and the bootstrap library. Here is the issue: When using live-server in VS code https://i.sstatic.net/W88jF.png Compared to Docker and node.js https://i.sstatic.n ...

What is the correct way to cite an inner class?

Exploring the world of Material UI styling for the first and probably last time, I find myself in a bit of a bind. In my current code setup, I have a question regarding the following structure: .map(section => ( <Section className={classNames(clas ...

Responsive dropdown menu in Bootstrap 5 navbar

Update: I successfully fixed the desktop version. Now, I just need to work on making it responsive for mobile. The problem I am encountering is that the dropdown menu doesn't function properly on both mobile and desktop. Although the styling looks go ...

Adding a unique custom button to a Bootstrap input field

I found something similar to what I need: input[data-icon] { padding-left: 25px; background: url("https://static.thenounproject.com/png/101791-200.png") no-repeat left; background-size: 20px; } https://i.sstatic.net/WYJZj.png However, thi ...

What are the steps to restrict a user from accessing a specific website?

In my Vue.js project, I've implemented a function that hides a specific menu item for users with insufficient permissions: <a :href="href" @click="navigate" v-if="hideMenuItem()"> // some code </a> hideMe ...

Is it necessary to convert an HTMLCollection or a Nodelist into an Array in order to create an array of nodes?

Here we go again with the beginner guy. I'm working on this exercise from a book called "Eloquent JavaScript". The goal is to create a function similar to "getElementByTagName". However, the first function below is not returning anything and the secon ...

Interactive image rotator featuring navigation buttons for next and previous slides

I recently followed a tutorial from W3Schools Now, I am looking to enhance it by adding previous / next buttons for the indicators, rather than for the slider itself Here is what I aim to accomplish: https://i.sstatic.net/qH1PQ.png Below is the code sn ...

An interactive selection tool for a website's navigation bar

Struggling to implement a dropdown menu for my navbar, none of the CSS methods I've tried seem to work. My current HTML code is as follows... <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-t ...

The drop down feature in Bootstrap is experiencing issues when used online, however, it functions perfectly when tested in VS Code

After migrating my website to a new hosting service, Web Host Canada, from the previous host, Hostpapa.ca, I encountered an issue where the dropdown menus are not functioning properly. The website in question is www.FeaterX.com. Interestingly, when I view ...

In Firefox, the scaling of svg masks is not functioning properly

Trying to utilize an svg for masking an image, but encountering scaling issues in Firefox. Safari and Chrome seem to display correctly, with proper fallbacks for IE. Website: SVG File: CSS: -webkit-mask: url("../img/feelfilms-logo.svg#logo_mask"); mask ...