How to change navbar border color in Bootstrap 4

Viewed 20525

In Bootstrap 3 we can change navbar color by setting .navbar-light border-color. However, it doesn't working by setting .navbar-light border-color in Bootstrap 4.

4 Answers
 <style>
        .navbar
        {
            border:5px solid #000;
        }
      </style>

try it

Thanks

You can use the border classes in Bootstrap.

Check this page for the classes.

Eg. class border-primary.

Related