First you tell him to not use a containing layer and now you advice to
use one anyway!
So which is it should he use one or not? I say he should take your
second advice and use a containing layer as you described below.
Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.
-----Original Message-----
From: Murray [mailto:
[email protected]]
Posted At: 22. marts 2005 12:34
Posted To: microsoft.public.frontpage.client
Conversation: i need help with layers move places in frontpage
Subject: Re: i need help with layers move places in frontpage
because everything stays centered
That's the tip-off. Your layers are pasted like glue to the screen
(that's why they are called absolutely positioned
elements) and the rest of the page is moving/centering underneath
them. If you had a screen ruler, you could measure the position of
the layers in the browser viewport, and I'm paying dollars to
doughnuts that the distance from the left and top margins of the
browser's viewport is constant for the layers.
See - that's the problem when you mix absolute positioning with
centering content.
Here's something simple you could try....
Add this to the head of the page -
<style type="text/css">
<!--
body { text-align:center; }
#wrapper { width:760px; margin:0 auto;
position:relative;text-align:left; }
/* you may need to adjust this width value */
-->
</style>
and change your HTML as follows -
change this -
<body...>
to this -
<body...>
<div id="wrapper">
and this -
</body>
to this -
</div>
</body>
and see what happens on one of these pages.
--
Murray
============
my page is not on the internet, so i cant show it to you. i
am sure it
is the layers moving because everything stays centered and then
depending on the screen size the layers will show up in different
places. for example i have some pages with a slideshow and
then some
buttons on the left and text on the right and they are both
in layers
and depending on different computers i view it on some times the
buttons look far away from the slideshow and sometimes it is
overlaping on the slideshow.
:
Please ignore that suggestion as it will only cause you
more problems.
Can you show me your page?
Are you REALLY sure it's the layers moving, and not some table
content underneath the layer?
--
Murray
============
how do i do a containing layer
:
Place them in a containing layer.
Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.
-----Original Message-----
From: AJ Boyce [mailto:AJ
[email protected]]
Posted At: 22. marts 2005 00:23 Posted To:
microsoft.public.frontpage.client
Conversation: i need help with layers move places in
frontpage
Subject: i need help with layers move places in frontpage
I have been creating a webpage for a school project and just
realized that the layers that i used on the pages move places
depending on the screen resolution... I really need
some help,
soon because it is due 3/24/05.
Please help me, AJ