Question:

Layer Positioning in Frontpage?

by  |  earlier

0 LIKES UnLike

I have two layers that I am going to use interchangably when clicked on (ie. one becomes visible while the other is hidden). I would like to make the layers stay in a cell on the page, rather than stay in a specific location on the page. If the browser window is resized, I want the layers to move with that cell. If I change the position of my layer to relative rather than absolute, it just removes it from my layer pane and doesn't work. Any suggestions?

 Tags:

   Report

1 ANSWERS


  1. Use javascript to find the location of the reference cell. Then apply that position to the other layers (again, with javascript).

    Add to the BODY tag this:

    onresize="window.location = window.location"

    When someone resizes the window it forces a reload and resets the positions.

Question Stats

Latest activity: earlier.
This question has 1 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.