Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    Regular Coder
    Join Date
    Jul 2002
    Posts
    124
    Thanks
    0
    Thanked 0 Times in 0 Posts

    centering images

    I'm missing something here. Below is the code for two images in a cell (which is the entire table). The problem is, the images are centered one above the other, as they should be, but they are not in the center of the cell. Maybe I'm more tired than I think... Can someone tell me what the problem is, please? It's fine in Mac IE - the problem is in Windows IE.

    <body bgcolor="#9cff9c" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onLoad="check_frames();"><font face="osaka">

    <table border="1" bordercolor="#184a18" width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="0">
    <tr>
    <td width="530" height="103" align="center"><img src="a.gif" width =133 height=43 alt="">
    <br>
    <img src="b.gif" width="460" height=59 alt="">
    </td>
    </tr>
    </table>

    </font>
    </body>

    Oh, while you're at it... The popup should appear once the menu on the left has fully loaded. Then it should close automatically 12 seconds later. Could you let me know whether it works ok? It's here.

    Many thanks
    chesneil

  • #2
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,265
    Thanks
    6
    Thanked 48 Times in 48 Posts
    Tried adding align="center" in the image tags?

  • #3
    New Coder
    Join Date
    Sep 2002
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts
    The pop-up works like you said it should for me. Hope that helps.

  • #4
    Regular Coder
    Join Date
    Jul 2002
    Posts
    124
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Nope. Doesn't work. Any other suggestions?

    (Thanks for checking the popup, asatyss)

  • #5
    Senior Coder
    Join Date
    Jun 2002
    Location
    Wichita
    Posts
    3,880
    Thanks
    0
    Thanked 0 Times in 0 Posts
    The problem is that you're mixing relative sizes with absolute sizes. Your table is width 100% but the TD is 530px. Match them up and the images will be centered.

  • #6
    Regular Coder
    Join Date
    Jul 2002
    Posts
    124
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Duhh...Thanks Roy. Don't know why I had a TD width in there at all.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •