Re: Layers Not Aligned Correctly

message from Murray *TMM* on 23 Jul 2004
You're in better shape now (although none of the images show). The layer is
not in the table. Your problem now is that a "layer" is absolutely
positioned on the screen. This means that when you say it's to be placed at
100 pixels left, that's where it always goes no matter what else happens on
the screen. There are two ways to make the layer move to track a moving
table:

1. Use CSS to wrap everything in a moving container (including the 'layer'
and the table) and the container will move to the center, carrying
everything else with it.
2. Use javascript to sense the position of an element in the table, and
then to dynamically move the layer accordingly.

For you, the latter approach may be easier - luckily, there is an extension
for Dreamweaver that does all the heavy lifting - SnapLayer from PVII -
http://www.projectseven.com/.

Give that one a try - or, if you want to try the first method, post back....
 
Chad Keller replied to Murray *TMM* on 23 Jul 2004
I downloaded the snaplayer behavior from projectVII. I ONLY linked my "summer
2004" layer to the header image just to test it out. In the behaviours I said
that the layer should sit to the right of the image. As you can see it does
but when you resize the window the layer still stays in a fixed position. What
am I doing wrong? Thanks for your help.
 
Chad Keller replied to Murray *TMM* on 23 Jul 2004
Forgot to give you the new link.

http://www.montpelieresearch.org/test.htm

thanks
 

Archived message: Re: Layers Not Aligned Correctly (Macromedia Dreamweaver Web Design)