In my MVC4 project, I faced a situation where I had a global.css
class with some classes that conflicted with Bootstrap after adding it. To resolve this, I created a new file called bootstrap_migration.css
. In this file, I prefixed the Bootstrap classes with .bt
, so in my HTML, I used classes like class="bt container"
, which worked perfectly.
For example, in my bootstrap_migration.css
:
.bt .jumbotron {
padding: 30px;
margin-bottom: 30px;
font-size: 21px;
font-weight: 200;
line-height: 2.1428571435;
color: inherit;
background-color: #eeeeee;
}
Is there a more efficient way to handle this issue?