View Full Version : Centering in Tables


Temperence
02-09-2005, 05:31 PM
Hi again, I have another quick question.

Lets say you place a picture in a cell of a table, do you have to center it by using the code <center><img SRC=pic.jpg></center> or can you leave out the <center></center> and it will automatically be centered?

Chris
02-09-2005, 05:39 PM
Nope, it will not be automatically be centered. Everything will be aligned to the left.

There are different codes for centering, the simplest being <center> </center> however you can also use:

<div align="center> </div> and <p align="center"> </p>

Thanks,
Chris :D

Pink4eva
02-09-2005, 06:28 PM
<center> </center> is the only know code i know that will center things lol.

pb&j
02-10-2005, 12:00 AM
or you can add this to the TD tag...
align="center"