Skip to content Skip to sidebar Skip to footer

Asp Mvc Cannot Override Bootstrap Css

I have tried so much to override bootstrap css with the following navbar css. Every time I try to load the css, I can't even see anything in my browser .navbar-default { backg

Solution 1:

  1. You need to include your CSS link to the page after link to Bootstrap. For example:

    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
    <link rel="stylesheet" href="mytheme.css">
    
  2. For some rules you need to use !important.

  3. Also try to add any query string to your CSS-file URL to avoid сaching problem, for example:

    <link  href="mytheme.css?version=new">
    

Post a Comment for "Asp Mvc Cannot Override Bootstrap Css"