https://i.sstatic.net/QLeA4.png
Struggling to replicate a layout similar to the provided screenshot using Bootstrap 4. The issue arises when trying to make the sidebar fixed while maintaining the desired layout.
To illustrate with a basic example:
<div class="container">
<div class="row">
<div class="col-m-4" id="sticky-sidebar">
Sidebar
</div>
<div class="col-m-8" id="main">
Main Area
</div>
</div>
</div>
Initially, achieving this layout is feasible. However, challenges arise once declaring:
.sidebar {
position: fixed // or absolute
}
Upon fixing the sidebar position, the main div starts appearing behind the sidebar rather than beside it. Although adding margins can readjust its position, it complicates responsiveness.
It seems like there might be a missing piece in the puzzle, as going through the Bootstrap 4 documentation did not provide a straightforward solution for this particular layout.