Layers in FP2003

  • Thread starter Thread starter Robin D
  • Start date Start date
R

Robin D

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
 
Make sure you're not using absolute positioning.

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed..................
...............................with a computer
 
Hi Robin,
make sure you've set a top and left position for the layer -
Hit Format - Layers - Positioning and type a value for top and left make
sure you add px, eg 10px not just 10. While you're there also delete the
height setting that FP adds - this is not needed and can cause problems in
modern browsers.

Once you've done this your layer will be "locked" to the position you set
it. Also when you're working with layers don't rely on Design View it never
seems to show layers in the exact position you've set. Previewing in your
target browsers is the only reliable way.

Jon
Microsoft MVP - FP
 
Steve,
Layers always use absolute positioning - you could not use a layer without
using absolute positioning :-) Layer is FrontPage's term for an absolutely
positioned div, don't know why they chose to use the term layer but that's
what it means.

Jon
Microsoft MVP - FP
 
Aah, now I understand.

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed..................
...............................with a computer
 
-----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)
|/---------------------------------------------------
*----------------------------------------------------
 
are layers what i use if i want to be able to open diffrent views on same page .example a row of interactive buttons across top to be able to click and a small area open up to view diffrent subjects still on same page though?
 
Back
Top