Throughout most of the webpages we just recently see the material stretches from edge to edge in size with a practical site navigation bar above and just immediately gets resized once the identified viewport is achieved so that more or less the showcased content fluently applies the whole width of the page readily available. But at a several occasions the desired purpose the pages must work in require along with the fluently resizing content area an additional part of the obtainable display screen width to get appointed to a still vertical component with several links and web content in it-- in other words-- the well-known from the past Bootstrap Sidebar component is needed. ( learn more here)
This is rather old solution but assuming that you certainly want to-- you are able to create a sidebar component with the Bootstrap 4 framework that together with its flexible grid system also present a number of classes intendeded particularly for setting up a secondary level navigation menus being simply docked along the webpage.
But why don't we start it easy-- via simply just nesting some columns and rows -- It is supposed this perhaps the easiest strategy. And also by nesting I mean you can gave a
.row
So let's say we need a right aligned Bootstrap Sidebar Menu together with some information inside it and a main web page to the left of it. We need to establish the grid tier down to what we need to maintain this arrangement right before the sidebar and the major web content stack above each other-- let's say-- medium and up. Therefore a possible solution attaining this could be this:
Primarily we need to have a container element to host the columns and rows and since we are certainly building something a bit more complex the
.container-fluid
Next we demand a
.row
.col-md-9
.col-md-3
Next inside these columns we are able to just create some additional
.row
Additionally in case you need to create a sidebar navigation menu along with the desired
.col-*
.sidebar
<main>
.col-*
Furthermore in the event you require to create a sidebar navigation menu along with the needed
.col-*
.sidebar
<main>
.col-*