I want my layers to resize with the browser but it will not do this.....


I have a layer which is a text link, the reasons for them being in a layer is because I want them to remain invisible on load and when a mouse passes over an image, those links come up.

if this is confusing, please go to:


and pass your mouse over the crosses at the bottom of the page, you will see that words come up on the yellow box.
Now, if you resize your browser window, you will see that the links stay where it is and does not resize with the browser.

How can I make it so that they do move?
I have heard of an extension called "snap layers" from project seven that snaps layers to back ground images, however I work on a MAC so I don't think the extension works. It seems to only be for PC's.

please help...this is basically the only thing that is preventing me from completing my site.

I work on Dreamweaver 4 on a Mac OS 9.2.2

thank you
Who is Participating?
oriental_phoenixConnect With a Mentor Author Commented:
I answered the question myself, here is the solution:

type this between the heads:

<style type="text/css">
body { text-align:center; }
#wrapper { text-align:left; position: relative; width:760px; margin:0
auto; }

now change the

<body bgcolor="#FFFFFF" text="#000000">

<body bgcolor="#FFFFFF" text="#000000">
<div id="wrapper">

and change:



it worked! see for yourself at :


and resize the windows with the text link showing, yay!

I think it is possible to make a javascript which will continuously check out the browser's width and height.
And according to different dimension, change the layer's postition to fit the window.

oriental_phoenixAuthor Commented:
well.....Im only a beginner and know close to nothing about javascript....I just thought, maybe Dreamweaver must already know that they have this problem and it could be solved just by doing something simple....I thought maybe absolute positioning/relative positioning etc but...even then, I really would like to know what exactly I should do....
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.