Use the w3-border class to add borders around the navigation bar:
Use the w3-round class to add rounded borders:
Use the w3-card classes to display the navigation bar as a card:
You can also add a border to each link: