Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5847319
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T12:42:06+00:00 2026-05-22T12:42:06+00:00

I am using a windows based program, coded in Delphi, to generated HTML (and

  • 0

I am using a windows based program, coded in Delphi, to generated HTML (and can restrict the browser to MSIE 7 +).

I need absolute, pixel perfect WYSIWYG. However, I am having text-wrap problems.

What looks like this in Delphi

-- -----------------
| aaaa bbb ccc ddd |
--------------------

looks like this in the browser (both MS IE and FF. Although I am targeting MSIE only, I am using FF to have access to FireDebug)

--------------------
|   aaaa bbb ccc   |
--------------------
ddd

Now, Delphi has an Object Inspector

enter image description here

which allows me to precisely set a control’s top/left/width/height and when generating the HTML, I use those for CSS positioning of each control on the form. e.g.

<fieldset style="position: absolute; top: 56px; left: 32px; width: 185px; height: 13px; ">
  <legend> </legend>
  <div style="position: absolute; top: 0px; left: 0px; width: 179px; height: 13px;">
     Label1 000 111 222 aaa bbb cccc dd
  </div>
</fieldset>

But since I am getting text wrap I guess that I am overlooking something, like setting of margin/border/padding. Any ideas what?

Btw, I use Arial 10 as my font for windows/browser comparability, so it shouldn’t be a font size problem.

I think that Delphi must have something akin to the box model, insomuchas it draws the control with a margin (a control starting at 0 left has a visible gap from the left of the form; if I give it width 100 and position another with left =100 there is a visible gap between them).

Any idea how I am going to achieve WYSIWYG? The HTMl must reflect the control layout in the Delphi form.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T12:42:07+00:00Added an answer on May 22, 2026 at 12:42 pm

    Try this, is this what you are trying to achieve?

    <html>
    <head>
    </head>
     <body>
      <form style="margin:0 0 0 0; padding:0 0 0 0;">
       <fieldset style="position: absolute; top: 56px; left: 32px; width: 185px; height: 18px; ">
         <legend></legend>
         <div style="text-align: center; position: absolute; top: 0px; left: 0px; width: 179px; height: 18px;">aaa bbb cccc dd</div>
       </fieldset>
    </form>
    </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to get a regular snapshot from a webcam in Delphi. Speed is
I have a Windows.Forms based .NET desktop application that stores privileged information in a
I have an existing (C# based) windows service that is derived from the Installer
I mainly develop in native C++ on Windows using Visual Studio. A lot of
I am about 90% sure my program would benefit from using the document framework
I've been working on a program to automate my backup checks with LogMeIn backup
I am using FtpWebRequest to append data to a mainframe file. Each record appended
Hey, I'm using D 1.041 with Tango 0.99.8 and was wondering how I would
I could not start an OpenCV application under Windows. Given the following simple OpenCV
I'm attempting to register a GIS based dll on a test computer and I'm

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.