Web Analytics Made Easy -
StatCounter graphics, it is not easy - CodingForum

Announcement

Collapse
No announcement yet.

graphics, it is not easy

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • graphics, it is not easy

    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
    today better than yesterday

  • #2
    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

    Comment


    • #3
      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.
      today better than yesterday

      Comment


      • #4
        Steven, the code mpjbrennan gave you will position the images from the table.

        Try adding some text above it

        Comment


        • #5
          Hi Steve,

          It does work - if you only specify the "left" characteristic. It won't work if you specify the "top" also.

          patrick

          Comment


          • #6
            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
            today better than yesterday

            Comment

            Working...
            X