absolute positioning moves

G

Guest

Hello,
Is there a way that you can make pictures that are absolute
positioning stay in place. The pictures move a little bit when you resize the
windows.
Thanks
 
T

Thomas A. Rowe

The images are not moving, but the rest of the page content is adjusting to the browser window
opening. Use tables to structure your page layout instead.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
M

Murray

Or, create a layout that centers everything including the 'layers'.

Here is a good demonstration -

http://www.roast-horse.com/tutorials/_tutorials/css_centered_content/index.html

And here is some code -

(inline styles used for clarity)

STYLESHEET -
body { text-align:center; } /* for IE5/IE5.5 */
#wrapper { text-align:left; }

BODY -
<div id="wrapper" style="width:760px; top:0; margin:0 auto;
position:relative;">
<div id="layer1" style="width:200px; top: 25px; left:140px;
position:absolute;">blah</div>
<div id="layer2" style="width:180px; top: 136px; left:23px;
position:absolute;">blah</div>
<table>...</table>
</div>

Try that - an outer relatively positioned division with a width and auto
left and right margins. All interior AP divisions and tables will be
centered, yet retain the
same relative positioning.


--
Murray
============

Thomas A. Rowe said:
The images are not moving, but the rest of the page content is adjusting
to the browser window opening. Use tables to structure your page layout
instead.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 

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