Today, I made the switch to bootstrap4 and enabled flexbox in _variables.scss
. However, I'm still confused about the flexbox capabilities of bootstrap4. Some questions I have include:
- How can I utilize
flex-direction:column
? - Is it possible to create a column with fluid width using
flex-grow
?
I am trying to create a full-height sidebar layout with the following markup:
<div class="flex-col">
<div class="flex-row" id="topnav">
<div class="flex"> <!-- this will grow -->
Brand
</div>
<div> left navbar</div>
</div>
<div class=" flex flex-row"> <!--flex expand to fill full height -->
<div class="sidebar">Sidebar</div>
<div class="flex">Content</div> <!--take rest of row space-->
</div>
</div>
Can someone please guide me on how to achieve this layout using bootstrap flexbox?