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

mohammed mayat
mohammed mayat
4,228 Points

burger menu color

hi guys how do I change the color of my burger menu on mobile view it is currently grey i want it to be white website http://mmayat.x10host.com/

code <!-- nav start --> <nav class="navbar navbar-toggleable-md navbar-light bg-faded navbar navbar navbar-inverse bg-inverse"> <button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarText" aria-controls="navbarText" aria-expanded="false" aria-label="Toggle navigation"> <span class="navbar-toggler-icon" style="background-color: black !important;"></span> </button> <a class="navbar-brand" href="#"><img class="logo" src="image/logoOne-min.png"></a> <div class="collapse navbar-collapse" id="navbarText"> <ul class="navbar-nav mr-auto nav"> <li class="nav-item active"> <a class="nav-link" href="#home">Home <span class="sr-only">(current)</span></a> </li> <li class="nav-item"> <a class="nav-link" href="#services">Services</a> </li> <li class="nav-item"> <a class="nav-link" href="#portfolio">Portfolio</a> </li> <li class="nav-item"> <a class="nav-link" href="#contact">Contact</a> </li> </ul> </div> </nav>

<!--nav finish    -->

1 Answer

Steven Parker
Steven Parker
229,744 Points

Frameworks can be cool, but if you want to do anything other than the "framework way" they can be a real pain.

You can add "white" to the span's class, and then add this to your CSS:

.navbar-light .navbar-toggler-icon.white {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='white' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
}