Is it possible to rearrange the position of two HTML elements when accessing a website from a tablet?
Here is the current setup:
<section id="content"></section><!-- End section#content -->
<aside id="sidebar"></aside><!-- End aside#sidebar -->
I would like the sidebar to appear above the content section when viewing the website on a tablet, like so:
<aside id="sidebar"></aside><!-- End aside#sidebar -->
<section id="content"></section><!-- End section#content -->
What is the best approach to achieve this? Can it be done with CSS alone or do I need to use Javascript, and if so, how should it be implemented?