There is such an order of elements in the html-code:
<aside class="leftaside"></aside> <aside class="mainaside"></aside> <section class="mainsection></section> <aside class="rightaside"></aside>
On a large screen, elements are positioned correctly, how to make so that when the resolution decreases (increasing the mainaside and mainsection width by 100%), the left and right aside is removed, is the mainsection going first and only behind it mainaside?