0

I tried to change the background color of navigation bar of MVC project. I tried changing the "bootstrap.css" file under Content folder.

.navbar-inverse {
  background-color: #222222;
  border-color: #080808;
}

I changed the color to #5A2506, but after re-loading it is still showing #222222 color. But when I change the color via developer tools of chrome the color is changed ,why?

.navbar-inverse {
  background-color: #5A2506;
  border-color: #080808;
}
4
  • May be it's loading from cache in browser press ctrl+f5 to refresh page Commented Apr 11, 2015 at 16:29
  • @EhsanSajjad: yes I was doing Ctrl+F5. Commented Apr 11, 2015 at 17:08
  • Then css is defined somewhere else as well Commented Apr 11, 2015 at 17:09
  • Can you put a !important keyword to the background-color to see if that fixes it? background-color: #5A2506 !important; Commented Apr 11, 2015 at 17:30

1 Answer 1

0

Thanks for the replies. I found that, when using Chrome I've to clear cache every time I make changes in CSS. But with firefox there is no such issues. Does any one else face the same issue?

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.