DocumentBuilder InsertHTML DIV Float

I am trying to insert the following HTML snippet using DocumentBuilder.InsertHtml:


01.
APOLOGIES


The problem is that the insert seems to be ignoring the float:left style and as a result the number (“01.”) appears on a separate line prior to the title (“Apologies”).

Is there a way to make this work without changing my styling. The reason that I use a separate div for the “number” part of my HTML snippet is to enable me to specify a particular width for it so that the “title” parts are aligned nicely in the output.

Thanks,

David

I also tried the following alternative approach to my HTML. But this still did not work. Still the number and title appear on separate lines.


01.
APOLOGIES


Hi David,


Thanks for your inquiry. Please note that it is not always guaranteed that the output Word document will look exactly the same as the input Html file and in your case the latest version of Aspose.Words mimics the way the Microsoft Word exports (Save As) your HTML to Word/PDF documents. This is the expected behavior. If we can help you with anything else, please feel free to ask.

Best regards,