What's the best way to implement different bootstrap versions on the same page?

In using asp.net, I have a script where the main page implements version 2.2 of BootStrap. But there is some content I would like to use for BootStrap 3.3. If I try to update or implement 3.3 over 2.2 in any way it breaks some of my code. Any ideas on how to "selectively update" the HTML / BootStrap to say everything is inside the Div tag?

+3


source to share


2 answers


Depending on how much hackers you want to get. If it's just one function, just copy the .css part from bootstrap 3.3 you want into your own css file and import that css file after version 2.2 is loaded either in your build script or after version 2.2 in your tag.

If you have a more specific question about which function (if you include js files as well) then we'll have to dig deeper.



Warning. You have to be careful with what you are rewriting from 2.2 as it might break other parts of the css. And as @DavidG pointed out, I wouldn't completely do this.

+2


source


You can do this very easily by isolating Bootstrap with LESS, there is a good way to do this "Chris Youderian". https://formden.com/blog/isolate-bootstrap



0


source







All Articles