Is there a way to isolate elements within a div, similar to how it would behave in an iFrame?
I am facing issues with the global SharePoint styles affecting my app inside SharePoint. I want to completely disable these global styles so that my app only uses its own CSS.
For example, if there is a global stylesheet for the page, and I add a div with its own embedded CSS, is there a way to override the global stylesheet entirely?
Check out this link for more information.
<html>
<head>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>Global parent element - red</h1>
<div class="self-contained-css">
<style type="text/css">
h1 {
color:red;
border: 1px solid blue;
}
</style>
<h1>Self contained css element - blue</h1>
<p>The self-contained CSS should act as though it is within an iFrame to separate it from the SharePoint CSS.</p>
</div>
</body>
</html>