View Full Version : graphics, it is not easy
Steven
06-26-2002, 09:02 AM
I like and have a lot of pictures in my page.
Most of the pictures are superimposed.
To let 2 pictures superimposed, I have no choice but have
to set their position to absolute.
But with absolute position, when I insert some thing above the pictures, I must re-position the abolute-position images.
Do you show me another method, not absolute position for superimposed pictures.
Thanks
Steven
mpjbrennan
06-26-2002, 03:29 PM
Put your pictures in a 1-cell table as follows:
<table>
<tr>
<td>
<img style="position:absolute; left:10px; z-Index:0"
src="pic001">
<img style="position:absolute; left:10px; z-Index:10" src="pic002">
</td>
</tr>
</table>
When you insert something before the table the whole shooting match will move down.
(only tested in IE5.5)
patrick
Steven
06-27-2002, 03:32 AM
Dear mpjbrennan,
You code does not work. Try and see. (in IE)
Pay attention that position:absolute refer to top of page, not top of cell.
Steven.
Graeme Hackston
06-27-2002, 10:31 PM
Steven, the code mpjbrennan gave you will position the images from the table.
Try adding some text above it
mpjbrennan
06-27-2002, 10:38 PM
Hi Steve,
It does work - if you only specify the "left" characteristic. It won't work if you specify the "top" also.
patrick
Steven
06-28-2002, 09:16 AM
Dear mpjbrennan,
Your answer is quite accurate !!!.
With top, the image is belong to page, and out of table control !!!
That is exactly my haedache!!!
Thanks
Steven
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.