Copy link to clipboard
Copied
Hi,
I have a background image in my page. The image is a systemdrawing. I want to place textboxes containing information from a database related to different parts of the drawing. How can I place textbox objects freely though out the background image?
/Mats
Copy link to clipboard
Copied
Because the background image is in a fixed position, either relative to the body tag or to the div tag within the body tag, you will need to place the textboxes at a fixed position relative to either the body tag or the dive tag.
I hope this helps
Ben
Copy link to clipboard
Copied
Yes, I know. But how do I make dreamweaver place an object where that I want it? Now it always becomes left justified. I want to drag the textbox to the position where I want it and drop it there.
This is what it looks like if I code it manually.
<input name="UnitId" type="text" id="UnitId" style=\"position:absolute;width:49px;left:252px;top:428px;z-index:1\" value="<?php echo $row_unitStartLevel['Start_Level'];?> />
This was actually created with another tool but I have to add the PHP database access manually.
Could I make dreamweaver produce something like this?
/Mats
Copy link to clipboard
Copied
Yes, I know. But how do I make dreamweaver place an object where that I want it? Now it always becomes left justified. I want to drag the textbox to the position where I want it and drop it there.
DW is not a drag and drop tool and will not do what you want it to.
This was actually created with another tool but I have to add the PHP database access manually.
What is the other tool, you have made me curious.
Copy link to clipboard
Copied
I used this
http://www.webpage-maker.com/
Perhaps it is possible to us it to create the layout, pick it upp in DW and add the database things. And mayby pick it upp in web page maker again if I want to move something. I will try.
/Mats
Copy link to clipboard
Copied
>>input name="UnitId" type="text" id="UnitId" style=\"position:absolute
The application you used used absolute positioning to allow you to drag/drop. You can do this with DW too using AP Divs, however it is not recommended to use absolute positioning for general layout. Your question really belongs in the main Dreamweaver forum, not the application developement forum as you are asking about page layouts.
Copy link to clipboard
Copied
If I’m not to use absolute positioning. What approach would you suggest to solve my original requirement ie. to be able to place text/values from a database on an image on positions they relate to?
I am usually an embedded programmer with very little experience from web programming. But I am a little frustrated over the web/database things made by the professionals here. So I obviously think I can do it better
!
I’ll try to be more cautious in my choice of forum in the future
.
/Mats
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more