...

View Full Version : centering images



chesneil
09-26-2002, 04:01 PM
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. (http://www.v-gr.com)

Many thanks
chesneil

Nightfire
09-26-2002, 04:38 PM
Tried adding align="center" in the image tags?

asatyss
09-26-2002, 04:40 PM
The pop-up works like you said it should for me. Hope that helps.

chesneil
09-26-2002, 05:04 PM
Nope. Doesn't work. Any other suggestions?

(Thanks for checking the popup, asatyss)

Roy Sinclair
09-26-2002, 10:23 PM
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.

chesneil
09-26-2002, 11:58 PM
Duhh...Thanks Roy. Don't know why I had a TD width in there at all.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum