Based on your comments, since scoped css is only supported by firefox, one thing you could do (a bit hacky, but it might suit your needs) gives your div a class - something like bootstrap-styles , then you can go through bootstrap css and put .bootstrap-styles in front of each style
It will be much easier if you use some kind of css processor like less or sass, as you can just wrap all bootstrap styles in your class
Alternatively, you can try the jQuery solution: https://github.com/thingsinjars/jQuery-Scoped-CSS-plugin
source share