Around the majority of the web pages we currently see the material stretches from edge to edge in width with a convenient navigation bar just above and simply just easily gets resized when the determined viewport is achieved and so more or less the showcased web content fluently uses the full width of the web page available. However at a certain instances the wanted purpose the pages have to work in require along with the fluently resizing material place an additional section of the available display screen width to get selected to a still vertical element along with certain web links and content within it-- in shorts-- the prominent from the past Bootstrap Sidebar feature is needed. ( more tips here)
This is rather old-fashioned approach however in the case that you truly need to-- you can surely generate a sidebar element with the Bootstrap 4 framework which in turn along with its flexible grid system also provide a couple of classes designed most especially for generating a secondary level navigation menus being really docked around the page.
However let's begin it easy-- via simply nesting some columns and rows -- It is presumed this maybe the most convenient solution. And also by nesting I intend you are able to gave a
.row
So let's say we need a right straightened Bootstrap Sidebar Dropdown together with some material within it and a principal page to the left of it. We need to determine the grid tier down to what we want to keep this alignment before the sidebar and the basic information stack above each other-- let us claim-- medium and up. Therefore a possible solution reaching this could be this:
Originally we need to have a container component to hold the rows and columns and given that we are actually designing something a bit more complicated the
.container-fluid
Next we require a
.row
.col-md-9
.col-md-3
Next inside all of these columns we can just produce some extra
.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 produce a sidebar navigation menu along with the desired
.col-*
.sidebar
<main>
.col-*