Importing html with referenced stylesheets

I need to import multiple html documents into a word doc. Each html document refereces a style sheet.
I beleve the style sheet is effecting the entire document, not just the imported html.
For example if there is a style for “p” in the css that makes all “p” selectors green, then all the text in the document turns green.
Is there a way to control/confine this behavior to the html?
Thanks
Rob

Hi

Thanks for your request. It is not quite clear for me what you mean. If you need to merge few HTML documents into one Word document, you can just create separate Document object for each of your HTML document and then merge them together. During merging, you can use ImportFormatMode.KeepSourceFormatting, in this case formatting of your particular HTML documents will be preserved in the merged document. Please see the following link to learn how to merge documents:
https://docs.aspose.com/words/net/insert-and-append-documents/
Best regards,