Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Div / Layer positioning

Status
Not open for further replies.

GiffordS

Programmer
May 31, 2001
194
CA
I know, I know... another positioning question. I used to know the answer to this. In fact, I learned the answer to this on this very site. Unfortunately, I have forgotten, and after searching old posts on the forum for over an hour cannot find the thread that had the answer.

Here's the deal: I have a division that contains an image and has a zindex of 3... call the division "image". I also have another division, call it "boxes", that contains checkboxes placed over the image. I need to be able to position the checkbox division relative to the image division so that if the screen is resized or resolution varies the boxes will still be in the right place. I've tried a number of combinations of absolute and relative positioning for both divisions, and nothing seems to work. The best I can get is to have the boxes division positioned relative to the window, which is not what I need. Help?
 
By giving the div images a position of relative, you should be able to give the div boxes a position of relative (as long as it's a child div of the images div) and all should be well.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top