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 trialAsad CSE
Courses Plus Student 566 PointsHow can i change my navigation menus color?
Hi there,i have tried to build my own website by using Bootstrap.But i'm feeling trouble with the default behaviors of navigation menus color in Bootstrap,i want to put my own color into my navigation menus.Is it possible?How? Here my codes
<header>
<nav>
<ul class="nav nab-pills">
<li class="active"><a href="index.html">Homepage</a></li>
<li><a href="twocolumn1.html">Left Sidebar</a></li>
<li><a href="twocolumn2.html">Right Sidebar</a></li>
<li><a href="onecolumn.html">No Sidebar</a></li>
</ul>
</nav>
</header>
2 Answers
lihaoquan
12,045 PointsYou need to :
- Add a parent class/id infront of the selector ( So that the interpreter knows that this selector is more prominent, since it is more specific )
- Your stylesheet must be added after the bootstrap stylesheet ( Cascading - the styles added later will override the previous ones )
e.g
ul.nav {} or #parent ul.nav {}
Asad CSE
Courses Plus Student 566 PointsThanks a lot Li Hao Quan,it's working!!!