View Full Version : I want the Table Data centered, but not the text inside...


PrincessKT
02-23-2003, 08:31 AM
Like I said, I'm trying to put up this layout, and I'm having some difficulties. So far I've fixed all my other problems, but this one has me STUMPED! I have my <TD> tag set so that it's 498 pixels, instead of 500 like the table rows. The reason why is because the letters went over the black line on the bg and it didn't look nice. So I set it to a smaller width, and aligned it in the middle. Problem is now all my text is aligned in the middle and I don't want that... I tried <p align="left"> on the text but then I return to my previous problem. If you know how to help me I would GREATLY appreciate it. Thanks. Here's the link to the problem page: http://dreamy-star.net/tutorials/testindex.html

epolady
02-23-2003, 09:10 AM
Remove the align="center" from

<TD align="center" width="496">

Should work, all that is doing is aligning everything in the center that's in that cell. HTH.

PrincessKT
02-23-2003, 04:25 PM
Thanks, but then I'm back to my old problem of the text on the left....

pb&j
02-23-2003, 04:36 PM
Your page seems to have 2 starting BODY tags in error. That may cause some display problems.

Your TD is set to 496 but your TABLE is set to 500. Where is the other 4 pixels? Each TR (or TD comination) must equal the total of the TABLE.

I see this at the end of your coding...
</TABLE>
<!-- End Table -->
</center>
Is there more that isn't loading? There should be an ending to your code.

PrincessKT
02-24-2003, 03:01 AM
That page wasn't the official one, it's only a test, so I didn't bother putting the </body> and </html> tags... lol Plus I fixed my problem with an iframe. The solution to all! lol