• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 480
  • Last Modified:

Control placement of DHTML window using position:relative

Hi,

I am using a DHTML popup window script from
http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow.htm
on a form.

A link exists on every line that will popup the window. I am trying to popup the window next to a particular form text field, but it doesn't seem straightforward. The window should top align and right justify as follows

WINDOW Text Box Link to popup window

Any ideas?
0
BrentNJ
Asked:
BrentNJ
2 Solutions
 
jwyrickCommented:
Use CSS to set the position of the text bo.  If you set the box like this:

style="position:absolute; top:100px; left:100px;"

Then set your window popup to coordinates offset to the box and everything should line up.
0
 
BrentNJAuthor Commented:
I don't think that I want to use set position on the text box since it could change depending on font settings on the users computer.

How would I specify to line up the popup next to the text box?

There is a position line in the script, but I'm not sure how to change it properly.

Thanks!!
0
 
archrajanCommented:
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now