I'm facing a very specific issue with my web page design and I need some ideas on how to solve it. The current structure of the page looks like this:
<div class="row">
<div id="home-img" class="col-6">
******An Image Goes Here******
</div>
<div class="col-6">
<div class="row">
<div id="locate" class="col-12">
******Content Here******
</div>
<div id="order" class="col-12">
******Content Here******
</div>
</div>
</div>
</div>
Using Bootstrap 4 for website development, the classes above represent the current structure in mind. Open to suggestions on how to reorganize the layout to address my requirements.
The goal is to move the id="locate"
div above the id="home-img"
when viewing the site on mobile devices, while keeping the id="order"
below the id="home-image"
.
Struggling to find an efficient HTML setup that facilitates this transition. Need the section to act as one row with two columns on desktop, the second column breaking down into two rows; on smaller screens, the first column should shift above the first row in column 1.
The desired display structure based on device screen size:
Desktop View.
----------------------------------------
| | Content Here |
| An Image Goes Here |----------------
| | Content Here |
----------------------------------------
Mobile View
------------------------
| Content Here |
------------------------
| An Image Goes Here |
------------------------
| Content Here |
------------------------