I'm currently experimenting with the nav utilities in Bootstrap 4. I've noticed that they automatically function as a flexbox. My goal is to make the navigation vertical until it reaches the medium breakpoint (md), at which point it should switch to horizontal layout. When in the vertical position, I want the nav to take up 20% of the viewport, and when horizontal, I want it to utilize the container-fluid class. I tried setting the width to 20% for .flex-column, but this affects both configurations. Any assistance would be greatly appreciated. Thank you. Here is my code:
.flex-column {
width: 20%;
}
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.2/css/bootstrap.min.css" rel="stylesheet" />
<div class="container-fluid">
<ul class="nav nav-pills flex-column flex-md-row justify-content-center border">
<li class="nav-item"><a class="nav-link active" href="#">Home</a></li>
<li class="nav-item"><a class="nav-link" href="#">Home</a></li>
<li class="nav-item"><a class="nav-link" href="#">Home</a></li>
</ul>
</div>