Here is how you can apply bootstrap styles inside any container tag, without affecting tags and elements outside of the container tag.
Let’s say you want to apply bootstrap only inside the div.bootstrap-inside container. But default bootstrap sylesheet will impact the entire document. Having a wrapped boostrap stylesheet will limit the bootstrap styles inside the container.
<div class="non-bs-parent"><aside></aside>
<div class="bootstrap-inside">…</div>
</div>
Requirements
The How
The Commands
TIP
You might want to specify some default CSS for styles that might get inherited for all nested styles because the default CSS for *,html,body will also get wrapped when you wrap your tw-bootstrap CSS.
Feature photo by Nimit Kansagra