I have several stylesheets with hundreds of lines of code. The stylesheets are conflicting with other stylesheets and I want to isolate there specificity to a single div. I don't want to use an iframe and I tried changing the precedence of the stylsheets in the head element.
Is there a grep or regex command that I can run to insert this string #isolated-div as the first selector in every line of all the specified stylsheets? That way, every style applied to an element will have to be an element that is a child of the div.
Nevermind top order elements like body or iframe.