I've taught myself CSS from things online so far. I feel like I'm doing pretty good but I'm having a heck of a time trying to edit the navbar. I'm working with Boostrap at the moment but I have a question about CSS, in particular Navbar functionality.
I understand how the HTML refers back to the bootstrap.css but while trying to work own the custom css (style.css) I cannot get the navbar to change colors with a top level class. For example changing navbar or navbar-inverse with: .navbar { background-color: white; } won't change the background. I have to go into .brand to change one of the boxes color.
<div class="navbar-wrapper">
<!-- Wrap the .navbar in .container to center it within the absolutely positioned parent. -->
<div class="container">
<div class="navbar navbar-inverse">
<div class="navbar-inner">
<!-- Responsive Navbar Part 1: Button for triggering responsive navbar (not covered in tutorial). Include responsive CSS to utilize. -->
<button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="brand" href="#">------------</a>
Something is overriding it so my question is more from a basic level. Do I have to set the exact element or does the CSS allow me to change an overarching class and it applies to things within that div.
My second question is: is bootstrap.css overriding my custom css?