To achieve the effect of centering links in Bootstrap 4's navbar, we will set the flex property to the value of auto, in the custom class of .flex-links. This class is used on the ul element inside the div with the class of .navbar-collapse.collapse.
How it works…
Get Bootstrap 4 Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.