Here is the current HTML setup:
<div class="container">
<div class="row">
<div class="col-lg-9 description"></div>
<div class="col-lg-3 sidebar"></div>
<div class="col-lg-9 comments"></div>
</div>
</div>
The desired outcome looks like this: https://i.sstatic.net/nNRaq.png I require this specific HTML structure to ensure that when the viewport shrinks and Bootstrap transitions into one-column mode, the sidebar column appears between the description and comments columns.
However, I am facing an issue where there is empty space in the layout when the template is not in mobile mode.
I have attempted various solutions without success. Can anyone provide assistance?
EDIT
I also tried the following approach:
<div class="container">
<div class="row">
<div class="col-lg-9">
<div class="description"></div>
<div class="comments"></div>
</div>
<div class="col-lg-3 sidebar"></div>
</div>
</div>
I experimented with using CSS's "order" property to rearrange the elements, but it did not produce the intended result (it only allowed me to position the sidebar at the beginning of the page).