In your code, you were using the ml-auto class on the element, which applies margin-left: auto. To center the content horizontally, I changed it to mx-auto, which applies margin horizontally on both sides (margin-left: auto; margin-right: auto).
Your original code classes: navbar-nav ml-auto nav-fill
Updated Code classes: navbar-nav mx-auto nav-fill"