View Full Version : centering images

09-26-2002, 05: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">
<td width="530" height="103" align="center"><img src="a.gif" width =133 height=43 alt="">
<img src="b.gif" width="460" height=59 alt="">


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

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

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

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

(Thanks for checking the popup, asatyss)

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

09-27-2002, 12:58 AM
Duhh...Thanks Roy. Don't know why I had a TD width in there at all.