Home > Software engineering >  Bootstrap NavBar doesnt change the background color
Bootstrap NavBar doesnt change the background color

Time:06-02

Im trying to change all the background-color from Navbar.Offcanvas bootstrap component and idk why its not working:

code

in the website

CodePudding user response:

besides to navbar tag,change bg="dark" to bg="light"

CodePudding user response:

You can try "navbar-light" and "navbar-dark" or "bg-primary navbar-light", "bg-success navbar-light", etc.
Please check the official document if you have more troubles. https://getbootstrap.com/docs/5.1/components/navbar/

  • Related