How can I get a Layer to hold its position.

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

monkey

i hope you don`t mind me hijacking the thread... but i`m having the exact
same problem. I`ve inserted a jpg image on a new page... then wanted to put
links within the image by inserting a transparent gif box using absolute
positioning... for exact placement and linking that. Previews fine... but
when browsed or page is minimised the links are over to one side... is there
anyway possible the links can me held down to the image below... so they
don`t wander about??

thanks, monkey
 
R

Ronx

Consider making the original image a background image for the table
cell, then insert the overlay into the cell.
Otherwise,
<td><div style="position:relative;"><img src="mainimage.jpg"><div
style="position:absolute;top 0;left:0;"><img
src="overlay.gif"></div></div></td>

It is imperative that absolutely positioned elements are not placed
directly into a table cell. Otherwise, the AP item will stay fixed, the
table cell will move around.
--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.
FrontPage Support: http://www.frontpagemvps.com/
http://www.rxs-enterprises.org/fp
 
M

Murray

I`ve tried this before, it worked as far as the links went but the problem
we
had with this is when previewed in different browsers/resolutions/screen
sizes the background image becomes off centre/too big/too small

Perhaps your attempt was flawed? The code Ronx posted would work as
advertised. And background images do not change sizes - ever.
as the image is the main body to the site this is unacceptable...
heres a link to show you what i mean

What's your question? Which page should I look at?
 
R

Rob Giordano \(Crash\)

curious as to why you're using a giant image for each page...pretty strange
effect if you do a Ctrl+Scrollwheel


| I`ve tried this before, it worked as far as the links went but the problem
we
| had with this is when previewed in different browsers/resolutions/screen
| sizes the background image becomes off centre/too big/too small
|
| as the image is the main body to the site this is unacceptable...
| heres a link to show you what i mean
|
| www.monkey-inc.co.uk some pages are currently under construction
|
| Monkey
|
| "Ronx" wrote:
|
| > Consider making the original image a background image for the table
| > cell, then insert the overlay into the cell.
| > Otherwise,
| > <td><div style="position:relative;"><img src="mainimage.jpg"><div
| > style="position:absolute;top 0;left:0;"><img
| > src="overlay.gif"></div></div></td>
| >
| > It is imperative that absolutely positioned elements are not placed
| > directly into a table cell. Otherwise, the AP item will stay fixed, the
| > table cell will move around.
| > --
| > Ron Symonds - Microsoft MVP (FrontPage)
| > Reply only to group - emails will be deleted unread.
| > FrontPage Support: http://www.frontpagemvps.com/
| > http://www.rxs-enterprises.org/fp
| >
| >
| >
| > | >
| > > i hope you don`t mind me hijacking the thread... but i`m having the
exact
| > > same problem. I`ve inserted a jpg image on a new page... then wanted
to put
| > > links within the image by inserting a transparent gif box using
absolute
| > > positioning... for exact placement and linking that. Previews fine...
but
| > > when browsed or page is minimised the links are over to one side... is
there
| > > anyway possible the links can me held down to the image below... so
they
| > > don`t wander about??
| > >
| > > thanks, monkey
| > >
| > > "E. T. Culling" wrote:
| > >
| > > > It's best not to use Absolute positioning... use tables instead.
| > > >
| > > > --
| > > > Eleanor T. Culling
| > > > Leavenworth, WA
| > > > Experience Art
| > > > http://www.uppervalleyarts.com/experienceart.htm
| > > >
| > > >
| > > > | > > > > 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
| > > > >
| > > > >
| > > > >
| > > >
| > > >
| > > >
| >
| >
 

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