How can I Fix a layer position have tried everything.

T

Tony M

In the "Position box" I select "ABSOLUTE"
And in "location and size " (in the position box)
I choose the px position from the Left and Top

It holds position ok in design but as soon as I switch to "preview " the
Layer changes position.

This also occurs when I view in FULL browser window and the reduce window
size.

The top left of the layer will not hold position in relation to (say) the
second word in a paragraph.

What I have done is create a layer about 300pix x 200 pix I then placed a
transparent gif on the layer
(did I do the right thing here ?) Its my first time fiddling with layers. I
followed the Help instructions to the letter and the layer would not hold
its position.

The result is what I want IF the layer would hold position.The word SOLD
appears sloped across two lines
This is a follow on post of my earlier one on the 16/12/2006
Any help gratefully accepted.

Tony
 
M

Murray

I'm betting $100 to a cold KrispyKreme donut that your layer is solid as a
rock on your page, and that what's moving is not the layer at all, but
rather the rest of the page content. Are you a taker? If so, have your
accountant send me your checking account number *and* a link to your page so
I can see the code, please.

By the way, if you are going to work with layers, read this -

http://www.great-web-sights.com/g_layerlaws.asp
 
R

Ronx

Layers do not move. The rest of the page does, though. Your problem is
not holding the layer fixed, but fixing the rest of the page.

One way of dealing with your problem is by using tables and a relative
positioned container:

<table>
<tr>
<td><div style="position: relative;"><div style="position: absolute;
bottom:0; right:0;">layer contents such as "Sold image"</div>Loads of
text and other cell contents</div></td>


The above snippet will lock the layer at the bottom right corner of the
table cell, no matter where the table or cell moves on the page, or
whatever happens to text sizes or browser window sizes. To be precise -
the bottom right of the relatively positioned <div>, which contains all
the cell contents. If you change the coordinates, then text resizing
may move the layer slightly, it could move out of the cell if the resize
is significant, but the position within the cell will not change if the
table or cell moves due to additional content in the page, or the
browser window being resized.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top