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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

layers moving

Status
Not open for further replies.

bcardona

Programmer
May 10, 2001
103
US
does anyone know how to keep the position of layers regardless of screen resolution, i use the div tags to position a textbox on an image, i.ex. top200 left 200, but when i make the screen smaller the textbox/layer is totally off alignment, not sure how to keep it in the same spot all the time.
 
It should not be. It should be 200px from the top of the edge and 200px from the left of the edge of whatever positioned container it is in (if it is not inside a positioned container, the reference point will be the viewport). If everything else is moving around, that could cause the effect that your item is actually not staying in place.

I would suggest abandoning absolute positioning if not absolutely necessary, and when it is, position the container so that absolutely positioned item references that container.

___________________________________________________________
[small]Do something about world cancer today: PACT[/small]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top