question about positioning (absolute/relative)

J

JC

I am new at this and I'm having problems getting graphics
to display right when I preview my site. I have it set up
so that the page is a table and several of the cells
contain graphics and some include text. When I used
absolute positioning on the graphics they only showed up
in the correct place if the browser was full screen and
on the resolution that I originally created it, but all
the text in the table's cells adjusted fine. Then I tried
relative positioning where I would just put the curor in
the point in the cell I wanted the picture and pasted it
there. This looked good in the normal pane even if I
adjusted screen resolution but in preview it moved all
these objects way off - again text stayed fine. Is there
some other way to handle graphics in tables so they
always show up in the correct point in the table no
matter resolution or if you partially minimize the
browser? Thanks.

JC
 
B

Bill Schroyer

Absolute positioning is just that, absolute no matter what
the screen size.
If you say position 100 top 100 left, that means 100
pixels from top of page and left 100 pixels form top left
of page.
When building this kind of page use the same techniques.
Insert a position box (div) instead of a table.
If you want to use tables stick with relative position and
nested tables to format the page.
Nested tables link:
http://www.frontpagewiz.com/tables/nested_wrapped_tables.as
p

Bill Schroyer
(e-mail address removed)
http://www.frontpagewiz.com
 
P

Peter Aitken

JC said:
I am new at this and I'm having problems getting graphics
to display right when I preview my site. I have it set up
so that the page is a table and several of the cells
contain graphics and some include text. When I used
absolute positioning on the graphics they only showed up
in the correct place if the browser was full screen and
on the resolution that I originally created it, but all
the text in the table's cells adjusted fine. Then I tried
relative positioning where I would just put the curor in
the point in the cell I wanted the picture and pasted it
there. This looked good in the normal pane even if I
adjusted screen resolution but in preview it moved all
these objects way off - again text stayed fine. Is there
some other way to handle graphics in tables so they
always show up in the correct point in the table no
matter resolution or if you partially minimize the
browser? Thanks.

JC

You may want to use a fixed width table - set the width to a # of pixels
rather than to a %. I have found this to be the best aproach when you want
to precisely position text and graphics elements. It means the table will
not adjust to the browser window size. It's this automatic adjustment that
causes many layout problems.
 

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