I was certain there was a solution for this, but it seems that I was mistaken (if you happened to find it, please do share).
I included two classes .col-sm-fixed
which establishes the width to align with one column width, while also setting a max-width
and min-width
for better readability.
The second class is .flex-auto
which configures the properties of the flex
value so that regardless of size, the item will expand to fill the space within the row. Additionally, I applied flex-nowrap
(pulled from bootstrap) to the row to prevent any layout mishaps where the main content could be pushed out of view.
edit
I discovered the bootstrap equivalent of flex-auto
, which is col
.
link here
.col-sm-fixed {
flex: 0 0 8.333%;
max-width: 250px;
min-width: 100px;
}
.flex-auto {
flex: 1 1 50%;
min-width: 50%;
}
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" rel="stylesheet" />
<div class="container-fluid">
<div class="row flex-nowrap">
<div class="col bg-info">
<ul class="nav nav-pills flex-column">
<li class="nav-item"><a class="nav-link active">Hi</a></li>
<li class="nav-item"><a class="nav-link">Howdy</a></li>
</ul>
</div>
<div class="col-11 pl-1 bg-warning">
Main Content Here?
</div>
</div>
</div>