I am currently working with a Delphi program on Windows to create HTML content. The challenge I am facing is achieving pixel-perfect WYSIWYG while dealing with text-wrap issues.
When I generate the HTML from Delphi, the layout looks like this:
-- -----------------
| aaaa bbb ccc ddd |
--------------------
However, when viewed in browsers like MSIE and FF, it appears like this:
--------------------
| aaaa bbb ccc |
--------------------
ddd
By using Delphi's Object Inspector, I can precisely define the position of controls using top/left/width/height properties for CSS positioning in the generated HTML code.
Despite these efforts, text wrapping issues persist, leading me to suspect that I may have overlooked settings related to margin, border, or padding. Any suggestions?
My font choice is Arial 10 for consistency across Windows and browsers, ruling out any font size discrepancies as the cause.
I believe there might be something similar to the box model in Delphi, where controls are drawn with margins causing visible gaps between them. How can I ensure true WYSIWYG alignment between the Delphi form and the generated HTML?