Aspose words builder removing css styles

Hi Team,

I am trying to load HTML to aspose.words.builder using InsertHtml and some of the inline HTML styles/ global css are removing while trying to add two div’s (div1 and div2) one after another (horizontally) each div should take 50% width.

var html = <div style="float:left; width:40%"> content 1 </div><div style="float:left; width:30%"> content 2 </div>
builder.insertHtml(html); Pdfsaveoptions opt = new Pdfsaveoptions (); opt.complaince = Ua_1; opt.ExportHtmlStructure = true; doc.save(ms, opt);

@Arjun7766

Please note that Aspose.Words mimics the behavior of MS Word. If you open the same HTML in MS Word, both DIVs are imported as Paragraph; one after another.

In your case, we suggest you please use Table tag with two cells in your HTML and insert the content in them. Aspose.Words imports HTML into its DOM according to your requirement.