Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS Bootstrap 4 Basics (Retired) Using Bootstrap Components Building a Navbar

navbar-dark bg-primary did not change <a class="navbar-brand"> to white

should I just add css to change the text to white?

try navbar-inverse , https://v4-alpha.getbootstrap.com/components/navbar/ more about navbar, and if something not changing just Overwrite it by your own CSS and if it also no works you should use "!important" after your CSS line :) but before ";"

3 Answers

You can try the class "text-white" in the navbar ;)

I can't get navbar-brand to have white text. Here is my codepen link: https://codepen.io/runaverse/full/rzqMRJ

Make your own css code below its important so lvel 2 priority level 1 is just writing on hard in html with style atribute this will be the last option and it have to work :) also background sometimes in bootstrap is background-image so always chcech it in documentation

color: white!important;