Charlie
Charlie

Reputation: 23818

How to make bootstrap affect only a part of an html document

I need to integrate my web application inside another(main app). I don't use the bootstrap library but the main app does. I however don't want my already-styled controls to be affected by the bootstrap of the main app. How can I prevent bootstrap from applying its styles on my controls?

Upvotes: 1

Views: 873

Answers (1)

Tim
Tim

Reputation: 2912

You can't really. If the CSS overwrites the styling of basic elements the only way for you to not be affected by them is to override the changes (each and every attribute) on your portion of the ui and below.

It is in my humble opinion, one of the weakest points of CSS today that you have no way to block the cascading when desired.

Upvotes: 2

Related Questions