Can the grid layout transition smoothly from a desktop view to a mobile view using Bootstrap 4 or pure CSS flex classes?
Desktop view:
Mobile view :
Currently, I have a solution in place but I want to avoid repeating content in two different places. Is there a way to achieve this without duplication?
<div class="container">
<main class="row">
<section class="col-lg-8 screen"gt;
<div class="row my-contracts justify-content-around">
<div class="col-12">
lot's of content in red container
</div>
</div>
<div class="row info justify-content-around d-none d-lg-block">
<div class="col-12">
lot's of content in green container
</div>
</div>
</section>
<div class="col-lg-4 aside">
<div class="row">
<div class="col-12">
lot's of content in blue container
</div>
<div class="col-12 d-block d-lg-none">
lot's of content in green container
</div>
</div>
</div>
</main>