Ravnanje sadržaja u ćeliji tabele - ALIGN-VALIGN

Evo ilustracije ravnanja sadržaja ćelije. Kada je ravnanje vertikalno koristimo valign a za horizontalno ravnanje koristimo align.

Naravno, možete ih kombinovati po želji.

<td valign="baseline"> Here, the left hand bit is aligned to the baseline.
<td valign="bottom"> Here, the left hand bit is aligned to the bottom.
<td valign="middle"> Here, the left hand bit is aligned to the middle.
<td valign="top"> Here, the left hand bit is aligned to the top.
<td valign="left"> Here, the left hand bit is aligned to the left.
<td valign="right"> Here, the right hand bit is aligned to the right.
<td valign="center"> Here, the left hand bit is aligned to the centre.

Cela tabela se moye poravnati sa <center></center>



Izlaz