I am writing a C++ program which allows a user to design a form and then to generate the corresponding web form.
Basically, the user gets an IDE something like Delphi, Visual Basic, etc and can position text labels, input fields, radio buttons, etc He can resize, rearrange and, when he is satisified, he instructs my program to generate and it spits out HTML (well, actually it will be PHP eventually, but let's not split hairs).
I want WYSIWYG. When the user generates, I can get the absolute position and size, etc, of each form control.
Below is the output of a crude alpha of my program. As you can see, I tried to absolutely position the single input field, but when I load the file in my browser, the input field shows up at top left.
QUESTION: how do I position the form elements absolutely, using either HTML or inlinbe CSS?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title></title>
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
</head>
<body>
<form action="C:\temp\aa.php" method="get"><div id="Edit1" style="position: absolute; top:128x; left: 80x; width: 121px; height: 21px;"><input type="text" name="Edit1"></div>
<div><input type="submit" name="submitButton" value="Submit"></div>
</form>
</body>
</html>