Okay, so I have a sidebar in one of my CMS pages. This sidebar has 3 static blocks:
- a menu (accordeon on mobile devices)
- a contact block
- an USP block
The HTML is roughly set up like this:
<div class="content">
<p>Some content</p>
</div>
<div class="sidebar">
<div class="block"><!-- static block -->
<h5>Menu</h5>
<ul>
<li>menu item</li>
<li>menu item</li>
<li>menu item</li>
<li>menu item</li>
</ul>
</div>
<div class="block"><!-- static block -->
<h5>Contact us</h5>
<p>Some text related to contacting the vendor</p>
</div>
<div class="block"><!-- static block -->
<ul class="usp">
<li>USP</li>
<li>USP</li>
<li>USP</li>
</ul>
</div>
</div>
The sidebar is on the right of the page. When I switch to a mobile device (770px media query), I want ONLY the menu block to be at the top of the page. The rest of the sidebar has to display at the bottom of the page. How do I do this, without changing HTML, and not using bad practice?
Structure how I want it on mobile devices:
- Menu block
- Content
- Contact block
- USP block