External css file for a certain diva

There is a task to load the div Jaxom, with all the styles and scripts, including reset.css mycssframework.css, etc, to an external website, with their styles, so that nothing is broken.
The question is, do I need to rewrite the whole reset.css adding prefix parent diva to every rule, or it is possible to connect it to a separate unit.
Thank you.
October 8th 19 at 03:02
4 answers
October 8th 19 at 03:04
Here is the iframe needed)
with iframes wouldn't be a problem, there is a task to do without iframe) - korey.Anderson commented on October 8th 19 at 03:07
well, then you have prefixes. So it's not to do... - Allene_Crona78 commented on October 8th 19 at 03:10
October 8th 19 at 03:06
But if I used LESS, it would be a matter of adding one line. =)
considered Less as an option, but do not have access to server side, also got to the bottom of css namespaces, but probably will be solved in the fastest way possible — by adding prefixes to reseto and framework to avoid conflicts with native styles. - korey.Anderson commented on October 8th 19 at 03:09
less can be run directly as a normal js file on the page. The server start is just as in addition. - Allene_Crona78 commented on October 8th 19 at 03:12
October 8th 19 at 03:08
What to load reset.css? Isn't it easier to specify styles for particular elements? Normally 40 percent is used from a standard reset.css.
October 8th 19 at 03:10
I'd have created for loadable diva new classes, which is not present in the main file that would describe it correctly, created a "ajaxdiv.css" and, depending on frequency loading
1. Either load would be a wonder to a diva
2. Or would include in the main file in header
To cleaner the content. And then 2 times reset shipping even if iframe is not very optimistichno:)
But it all depends on the rest of the details.

Find more questions by tags CSS