Issues with ordering directives in Bootstrap 4 are preventing proper functionality on various mobile platforms and devices

When I resize the browser window to mobile width, the order column directive in the code snippet above works fine. However, when I test it on a mobile emulator or an actual mobile device, the order columns do not function properly. This issue seems to be related to @media queries not working properly on mobile devices. Other suggestions on the forum include using

<meta name="viewport" content="width=device-width,initial-scale=1.0">

Unfortunately, adding that meta tag does not seem to resolve the problem.

<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" rel="stylesheet"/>
<div class="row align-items-center py-8 py-md-11">
  <div class="col-12 col-md-12 col-lg-5 mt-2">
    <div class="d-flex">
      <div>
        <h3>
          Feature 1
        </h3>
        <p>
          sometext
        </p>
      </div>
    </div>
    <div class="d-flex">
      <div>
        <h3>
          Feature 2
        </h3>
        <p>
          sometext
        </p>
      </div>
    </div>
  </div>
  <div class="col-12 col-md-12 col-lg-7 order-sm-first order-md-first order-lg-last">
    <div class="mb-8 mb-md-0">
      <div id="native-awesome-landing-page-tools" class="img-fluid img-animation lottie shadow-dark">
        <img class="img-fluid" src="https://upload.wikimedia.org/wikipedia/commons/2/20/Eglinton_Valley_NZ_01.jpg" />
      </div>
    </div>
  </div>
</div>
<div class="row align-items-center py-8 py-md-11">
  <div class="col-12 col-md-12 col-lg-7">
    <div class="mb-8 mb-md-0">
      <img class="img-fluid" src="https://miro.medium.com/max/3000/1*MI686k5sDQrISBM6L8pf5A.jpeg" />
    </div>
  </div>
  <div class="col-12 col-md-12 col-lg-5 mt-2">
    <div class="d-flex">
      <div>
        <h3>
          Feature 1
        </h3>
        <p>
          sometext
        </p>
      </div>
    </div>
    <div class="d-flex">
      <div>
        <h3>
          Feature 2
        </h3>
        <p>
          sometext
        </p>
      </div>
    </div>
  </div>
</div>

Feature 1

sometext

Feature 2

sometext

Answer №1

Place the code right after the opening <head> tag in your HTML document.

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 Javascript file seems to be unable to recognize the reference to an Angular directive

When working on my project, I encountered an issue with my EventController.js not recognizing the reference to ng-app="eventsApp" from app.js. I followed a tutorial on Pluralsight. Even though it works for the instructor, I keep seeing {{event.name}} inst ...

Sometimes, the browser may fail to recognize a jQuery click event when a CSS3 transform is applied

There is an issue where click events are sometimes not triggered when an element contains another element being animated with CSS transitions. To see an example of this problem, check out the test case at http://codepen.io/anon/pen/gbosy In my layout, I ...

"Utilizing a flexible grid system in Bootstrap to create 2 or

I am looking to create a layout with a variable number of columns using row span. Specifically, I want 3 columns on XS, 2 columns on SM (with the first 2 columns stacked on top of each other), and 3 columns on LG. I am unsure how to make the row span respo ...

Is it possible to incorporate percentage-based widths within a fixed layout design on a webpage?

I've been delving into the concepts of fixed, fluid, and responsive web page design. One of the resources I stumbled upon is this article about fixed vs. fluid layouts. In the article, it mentions that "A fixed website layout has a wrapper that is a f ...

Verifying StartDate and EndDate using AngularJS and Bootstrap Datepicker

My HTML Coding <form name="myForm"> <div class="row"> <div class="col-md-2"> <input data-ng-model="Data.StartDate" type="text" id="startDate" name="startDate" class="form-control" data-da ...

Preventing Event Propagation in Jquery is Quite a Challenge

I'm feeling a bit perplexed. I have a list of names with checkboxes next to them, and this list is generated dynamically after making a request to the backend. The issue is that every time I click on a checkbox, it immediately becomes unchecked. I no ...

Deleting Single Files from a Selection of Multiple Files With File Input

Is there a way to remove specific files from the list of files selected for upload when multiple files can be chosen by the user? As an example, consider this input field: <input type='file' name='file' id='file' multiple= ...

Discover a class located following a specific element even when they are not directly related

There is a group of elements all with the class month. Some of them also have the class cal, while only one has the class today. The goal is to locate the first element with the class cal, but only after finding the element with the class today. The chall ...

Varied quantities of columns in each row

Correct LayoutI am looking to customize the layout by displaying the first two rows with 3 columns each, the third row with 5 columns, and the fourth row with 4 columns, using CSS modifications only. CSS ul { columns: 3; } HTML <ul class="list&qu ...

Apply border-radius to the group of columns in CSS

I'm having trouble applying border-radius to the column group in an HTML table. Is there a solution for this issue that allows me to maintain accessibility for the table view? Is there a way to achieve border-radius on the column group while ensuring ...

Closing the dropdown menu by directly clicking on the button

I've noticed several inquiries on this platform regarding how to close a drop-down menu by clicking anywhere outside of it. However, my question is a bit different. I want the dropdown-menu to remain open once clicked, only closing when the user clic ...

"Implementing a Callback Function when Jquery Countdown Reaches

Implementing this plugin will result in a live countdown displayed on the webpage. I recently reviewed the on.finish callback documentation found on the Official website. The main objective is to hide the span#limit once the timer completes its countdown ...

The loading icon appears stuck and does not rotate on iOS version 15.3 and above, but functions properly on versions below 15.3

The loading icon does not spin on iOS versions > 15.3 or 16.1, but it works perfectly fine on lower iOS versions for iPhone and iPad, as well as on Android browsers. Below is the CSS code for reference. I've attempted using webkit for Safari and a ...

Unexpectedly Vertical Bootstrap Navigation Bar instead of the expected Horizontal design

By using the same css classes as those found on the Twitter Bootstrap website, my horizontal navigation bar has been transformed into a vertical one. While maintaining the same div layout and classes (with the exception of the bs-* classes) as the Bootstra ...

Quicker way to apply appendChild

Is there a more efficient method to simplify the process of creating elements from an object fetched via a request? While the current code is functional, it seems overly verbose for what appears to be a straightforward task. async function getJobs() { ...

Getting the dimensions of an image when clicking on a link

Trying to retrieve width and height of an image from this link. <a id="CloudThumb_id_1" class="cloud-zoom-gallery" rel="useZoom: 'zoom1', smallImage: 'http://www.example.com/598441_l2.jpg'" onclick="return theFunction();" href="http ...

When hovering over one item, it causes a hover effect on an item in a SEPARATE container

My goal is to create a unique interaction between links and images, where hovering over a link will transform the corresponding image below it, and vice versa. I have been searching for solutions but have only found methods that work when all items are wit ...

The requested resource does not have the 'Access-Control-Allow-Origin' header, resulting in a 401 error

I've been working on integrating spell check functionality using the Bing Spell Check API, but I've run into a 401 error. The specific error message is: The requested resource does not have an 'Access-Control-Allow-Origin' header. This ...

Leverage CSS variables in Firefox to customize your webpage

I am currently developing a comprehensive CSS tabs navigation system. Here is the link to what I'm trying to achieve: http://jsfiddle.net/7fZnn/1/ However, I want to avoid using inline CSS to position my tabs. In my search for alternatives, I came ac ...

Safeguarding replicated HTML tags within a Python dictionary during web scraping with Beautiful Soup 4

Utilizing BeautifulSoup4 in Python 3.6, I am extracting data from a website where some content is structured like this: <div class="contentContainer"> <p class="contentLabel">Living Room</p> <span class="contentValue">15 m ...