hi,
As your code you've to add your controls to one dynamic table cells in orderlly
like name in table cell 00 and textbox in table cell 01
Divid.innerHtml="<table width="60%" align="center"><tr><td><div id="fgf">this dynamically created html control </div></td><input type="text" id="fdg" /></tr></table>";
By this only you can get correct position in webpage
you can do it in another way also
by setting style property like position:fixied;left:12px;top:30px;
I hope you understood what I said
All the Best