|
Developer Geek Resources HTML Code Examples |
Custom Search
|
HTML Tags - Using the align tag within the td or tr tag.
Using align tag within td tag
| Centered | Default |
| Right | Default |
Using align tag within tr tag
| Centered | Default |
| Right | Default |
Just cut-n-paste to reuse.
<p>Using align tag within td tag</p>
<table border="1" cellspacing="0" width="300">
<tr>
<td align="center">Centered</td>
<td>Default</td>
</tr>
<tr>
<td align="right">Right</td>
<td>Default</td>
</tr>
</table>
<p>Using align tag within tr tag</p>
<!-- td alignment -->
<table border="1" cellspacing="0" width="300">
<tr align="center">
<td>Centered</td>
<td>Default</td>
</tr>
<tr align="right">
<td>Right</td>
<td>Default</td>
</tr>
</table>