I am building a html editor for a site. I need to preview how the HTML just typed by the user will look in the destination site, so I need to load that sites stylesheets, but I only want those stylesheets to effect content within the Div.
I have no access to edit the stylesheets to make them specific for that div.
So my code needs to work as follows:
<div style="/styles/public1.css">
New HTML
</div>
I can load the stylesheet outside of the div but that would override my own sites stylesheets, so is no good.
Is there a way of quarantining a stylsheet to just effect the contents inside my div?