Currently, I am using Bootstrap 4 and facing an issue with the layout order. Despite searching for a solution extensively, I have not been able to get it right or find one in the archives. Here is what I need...
For desktop view, the layout should appear as follows:
https://i.sstatic.net/191jv.png
While on a mobile device, the layout needs to be like this:
https://i.sstatic.net/l4Gt9.png
Box 1 has a class of "col-md-8", and Box 2 has a class of "col-md-4". However, I am struggling to determine how to properly position Box 3 (or which class to use) to display correctly in both layouts. Any suggestions would be greatly appreciated!
Thank you in advance for any assistance!
UPDATE (2018/6/26): Below is the modified code that resolves the issue:
<main id="body" role="maincontent">
<div class="container">
<h1>Page Title</h1>
<div class="row d-flex d-md-block clearfix">
<div class="col-md-8 main_content float-left">
<p>Lorem ipsum dolor sit amet</p>
</div>
<div class="col-md-4 highlight float-right">
<p>Second Item</p>
</div>
<div class="col-md-4 float-left">
<p>Lorem ipsum dolor sit amet</p>
</div>
</div>
</div>
</main>