Currently in the process of redesigning my website's theme powered by WHMCS with Bootstrap 4. I am facing challenges in implementing column ordering in the client area similar to the default "six" template in Bootstrap 3. The goal is to have the Primary and Secondary navigation on the left side in desktop view, with the main content on the right, and in mobile view, the primary navigation should move above the content, followed by the secondary navigation:
Desktop View:
PN | MC
SN |
Mobile View:
PN
MC
SN
Here is the basic layout html:
<div class="container">
<main class="row">
<aside class="col-sm-3">
Bootstrap 4 Card containing Primary Navigation
</aside>
<article class="col-sm-9">
Main client area content
</article>
<aside class="col-sm-3">
Bootstrap 4 Card containing Secondary Navigation
</aside>
</main>
</div>
Having difficulty getting the secondary navigation to align on the left below the primary navigation in desktop view; it is currently positioned below the main content. With Bootstrap 4's use of flex-boxes, the previous solution of using a left float in Bootstrap 3 no longer works.
Edit:
Provided below are the fiddles for better understanding:
Note: Removed images as the fiddles demonstrate the same setup.