I am in need of reorganizing some content based on the size of the window or screen.
This is how it appears in full view:
https://i.sstatic.net/EInnS.png
But here's what I want when the screen size is 768 pixels or less: https://i.sstatic.net/N1ky0.png
Below is the structure of my code:
<div class="container">
<div class="row">
<div class="col-md-9 site-main-content">
<div class="content">
<!--Main content-->
</div>
</div>
<div class="col-md-3 site-sidebar-content">
<div class="box-1"></div>
<div class="box-2"></div>
<div class="box-3"></div>
</div>
</div>
</div>
I'm not quite sure how to make this work.
Update: Using the hidden property is not an option for me. Box 1 contains an AJAX search form, and if I place it above the main content on a full screen and set it to display none, the AJAX form stops working. So, I am in search of a JavaScript snippet that can remove box 1 from its original position and load it above the main content when viewed on a smaller screen size.