-1

This is my navbar code :

<div class="navbar navbar-inverse navbar-fixed-top">
      <div class="navbar-inner">
        <div class="container">
          <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="sampale.html"><font color="#125EAA">Downloads</font></a>
          <div class="nav-collapse collapse">
            <ul class="nav">
              <li class="active"><a href="https://example.com">Browser</a></li>
            </ul>
                <div class="btn-group">
                      <a class="btn dropdown-toggle btn-primary" data-toggle="dropdown" href="#">
                        Guides
                        <span class="caret"></span>
                      </a>
                      <ul class="dropdown-menu">
                        <!-- dropdown menu links -->
                        <li><a href="https://example.com/sample.htm">User Guide 1</a></li>
                        <li><a href="https://example.com/sample.htm">Option 2</a></li>
                      </ul>
                </div> <!-- dropdown -->

                <div class="btn-group">
                      <a class="btn dropdown-toggle btn-primary" data-toggle="dropdown" href="#">

                        <span class="caret"></span>
                      </a>

and this is my css file ( custom.css )

.navbar-inverse .navbar-inner {

                 background-color: #FFDD00; /* fallback color, place your own */
                 background-image: none;
                 background-repeat: no-repeat;
                 filter: none;
              }

Result is :

  1. In the code portion Browser

    Browser

the background of the Browser portion still shows the default color ( black ) but I want it to show the background-color of yellow (#FFDD00).Can we fix that part ?

  1. Also , can we edit the btn-primary class in css . I want to change the color of the button.

I had these 2 questions. Any help greatly appreciated ! danke!

thestralFeather7
  • 529
  • 2
  • 10
  • 28
  • possible duplicate of [navbar color in Twitter Bootstrap](http://stackoverflow.com/questions/9869610/navbar-color-in-twitter-bootstrap)- you also asked this yesterday: http://stackoverflow.com/questions/17661211/bootstrap-custom-css-file – Carol Skelly Jul 16 '13 at 19:18
  • do you mean the body shows black? if thats the cause just set body{background: #FFDD000;} – Parker Hutchinson Jul 16 '13 at 19:18
  • @ParkerHutchinson - no sir, I don't want to make the body yellow , Just the navbar ! and in the browser part it's showing the Browser part as black ! – thestralFeather7 Jul 16 '13 at 19:32

1 Answers1

2

For your first question use:

background-color: #FFDD00 !important;

For your second use:

.btn-primary {
    background-color: red;
}