Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

tables

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I have a very annoying problem. I have created a table with 3 <td> sections. The first section's content is to be right aligned. The next section (middle) is to be center aligned, and the last section (right), is to be left aligned.

I put align tags in the <td> cells but it is not working properly.

The middle section is the largest in width and the two small left and right cells are the same size.

When i change the size of the middle cell, the alignment is not centered anymore. The content starts to move to the left.

Am I missing something? Please please let me know. thanks for your help.
 
<table border=&quot;0&quot; align=&quot;left&quot; valign=&quot;top&quot; width=&quot;525&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;>
<tr align=&quot;center&quot; valign=&quot;top&quot;>
<td colspan=&quot;3&quot;>
<img src=&quot;gallery photos/Venetian-Room-web.jpg&quot; width=&quot;518&quot; height=&quot;389&quot; align=&quot;left&quot; border=&quot;2&quot;>
<br clear=&quot;all&quot;><br clear=&quot;all&quot;>
</td>
</tr>

<tr valign=&quot;middle&quot; bgcolor=&quot;#666666&quot;>
<td align=&quot;right&quot; width=&quot;100&quot;>

</td>
<td align=&quot;center&quot; width=&quot;325&quot;>

<b><font color=&quot;#ffffff&quot;>Venetian Room - 1</font></b>
</td>
<td align=&quot;left&quot; width=&quot;100&quot;>
<img src=&quot;../graphics/next.gif&quot;> <img src=&quot;../graphics/doubleright.gif&quot; alt=&quot;Next Five&quot;>
</td>
</tr>

</table>
 
OK, In the middle cell you have that text(Venetian Room-1)whose the font color is white. (and I assume the BG color is white too) so when you insert the image there, it'll be beside your invisible text and seems not to be aligned center.
 
actually, the text is white,like you said,...but you can see that the bgcolor of the row is #666666. so the text will be seen

There will be no pix inserted in the cell with the text. All the code is complete and exactly the way I have it on my page.

so i'm not sure what you mean? can you explain...
 
Yeah, my mistake. But do you see Grey BG in that row? I don't.
I don't know. Maybe try <p align=&quot;center&quot;>.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top