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

Custom CSS

Want to change the color of navbar toggle button. but im not able to do so

.navbar{
  background-color: orange;
}

.navbar-brand{
  color: white;
}

.navbar-nav a{
  color: white;
}

.navbar-toggler .navbar-toggler-icon{
  background-color: white;
}

the above code is changing the color of the toggle button itself instead of its border. please help

2 Answers

geoffrey
geoffrey
28,736 Points

I'm not sure I fully understand what you want but generally when you want to change the color of a border you can use the border-color property. check here. Hope it helps you, if not, tell me.

i want to change the default border color of the navbar toggler icon button :)

geoffrey
geoffrey
28,736 Points

Swapnil Saraf In case you haven't solved your issue yet, would it be possible to have a link to your workspace ? That would make things easier to give you a solution.