My question is concise and to the point. Despite searching online, I have not been able to find any information on this topic.
Currently, my layout consists of 3 columns:
----------------------------
|left|the-main-column|right|
----------------------------
Current code:
<div class="main">
<div class="col-left sidebar">
<div class="left-sidebar-nav"></div>
</div>
<div class="col-main"></div>
<div class="col-right sidebar">
<div class="right-sidebar-cart"></div>
</div>
</div>
1. I would like to rearrange the columns by moving the right column above the left one:
-----------------------
|right|the-main-column|
------- |
|left | |
-----------------------
<div class="main">
div class="col-right sidebar">
<div class="right-sidebar-cart"></div>
</div>
<div class="col-left sidebar">
<div class="left-sidebar-nav"></div>
</div>
<div class="col-main"></div>
</div>
2. Alternatively, I am looking to integrate the content of the right column into the left column without its wrapper:
_______________________
|right|the-main-column|
|left | |
-----------------------
<div class="main">
<div class="col-left sidebar">
<div class="right-sidebar-cart"></div>
<div class="left-sidebar-nav"></div>
</div>
<div class="col-main"></div>
</div>
Can these changes be achieved using CSS alone? And what would be the JavaScript/jQuery solution for this task? Additionally, I am curious about resolving the second question as it will help me in relocating a slider from the main column to the top of the left sidebar.