Same code but different output...

admin

Administrator
Staff member
I'm somewhat baffled by this...<br />
<br />
Here's the first code (the one that works properly)<br />
<br />
<br />
<div align="center"> <br />
<table width="100%" height="100%" border="0" align="center" cellpadding="0" cellspacing="0"><br />
<tr><br />
<td align="center" valign="middle" bgcolor="#FFFFFF"> <br />
<div align="center"> <br />
<img src=http://www.htmlforums.com/archive/index.php/"images/CactuarSplash.jpg" width="500" height="500" border="0"><br />
</div><br />
</td><br />
</tr><br />
</table><br />
</div><br />
<br />
<br />
Now that does it right, places the images in the center of the page. Here's the second one that doesn't seem to work...<br />
<br />
<br />
<div align="center"><br />
<table width="100%" height="100%" border="0" align="center" cellpadding="0" cellspacing="0"><br />
<tr><br />
<td align="center" valign="middle"><br />
<div align="center"><br />
<img src=http://www.htmlforums.com/archive/index.php/"images/rpgsquare.jpg" width="498" height="292" align="middle"><br />
</div><br />
</td><br />
</tr><br />
</table><br />
</div><br />
<br />
<br />
On the second one the image appears at the top of the page. Have I completly lost the polt, and overlooked something incredibly simple, or is that basiclly the SAME code?<!--content--><img src=http://www.htmlforums.com/archive/index.php/"images/rpgsquare.jpg" width="498" height="292" align="middle"><br />
<br />
tha tis suppose to be valign. but it doesn't do any good in an image tag as it is for aligning it next to text, not in a cell.<!--content-->No, "align" is correct in the image tag. And yeah, it only helps with text next to it, sut still. It makes no different weather it's there or not.<!--content-->no there is no such thing as align="middle" align can only go left,center,right. valign goes middle.<br />
<br />
anf that is the only difference in the code so it has to be the problem.<!--content-->Well I've tried removing that and there's no change.<!--content-->but on a different note, are those on the same page? are the divs postitioned relative or absolute?<br />
<br />
do you have a test url?<!--content-->
 
Back
Top