-----Original Message-----
Is there a way to 'anchor' a layer in FP2003? When I
create a layer, it does not necessarily stay where I put
it....ie it's all over the page with different viewers.
Any way to keep it to a specific location?
Thanks!
Robin D
This is a difficult problem, and a reason that many
designers only use layers as a last resort. There are two
basic problems:
1. Not all browsers interpret positioning measurements
the same way. This is particularly true of layers
within layers, or within other objects. Some browsers
always measure positions from the top left corner of
the browser window, and others measure them from the
top left corner of the next highest container.
You can minimize this problem by
o Physically locating the HTML for your layers
immediately after the <body> tag or immediately
before the </body> tag, and by
o Never putting the HTML for one layer inside
another.
2. Other objects on the page might move around
(i.e. because of browswer window size or the
browser itself), and the layers won't move with them.
You can fight this by
o Absolutely positioning more and more content
(i.e. whatever is causing problems by moving
around), or by
o Writing JavaScript to adjust the layer position
at browse time (i.e. figure out where the movable
stuff ended up, and then move the Layer to
accomodate.)
Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------