# Vertically aligning a table

**URL:** <https://forum.kirupa.com/t/vertically-aligning-a-table/21183>\
**Category:** Uncategorized\
**Created:** [May 18, 2003, 4:36pm UTC](https://forum.kirupa.com/t/vertically-aligning-a-table/21183 "2003-05-18T16:36:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![replode](https://avatars.discourse-cdn.com/v4/letter/r/c4cdca/32.png) [@replode](https://forum.kirupa.com/u/replode)\
**Post date:** [May 18, 2003, 4:36pm UTC](https://forum.kirupa.com/t/vertically-aligning-a-table/21183/1 "2003-05-18T16:36:59Z")

</div>

i have a site that is based inside a table, which is 100% wide, but only like 40% high. how would i make it so that the table would vertically align in the center, instead of at the top or bottom?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 18, 2003, 4:50pm UTC](https://forum.kirupa.com/t/vertically-aligning-a-table/21183/2 "2003-05-18T16:50:21Z")

</div>

what are you using DW or FP???

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 18, 2003, 4:51pm UTC](https://forum.kirupa.com/t/vertically-aligning-a-table/21183/3 "2003-05-18T16:51:39Z")

</div>

whats fp?

but i’ll probably just use dw

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 18, 2003, 5:42pm UTC](https://forum.kirupa.com/t/vertically-aligning-a-table/21183/4 "2003-05-18T17:42:56Z")

</div>

**D** ream **W** eaver, **F** ront **P** age.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 26, 2003, 2:16am UTC](https://forum.kirupa.com/t/vertically-aligning-a-table/21183/5 "2003-05-26T02:16:17Z")

</div>

Well, this post is about a week old, but if you still need help, I’ll try…

Put the table containing your site inside another table. Make the tag for the new table like so:

```php
<table width="100%" border="0" height="100%">

```

And then, make the regular TR and TD tags, but in the TD tag put align and valign commands:

```php
<td align="center" valign="middle">

```

and then put your site in this TD, so the whole thing would look like:

```php

<table width="100%" border="0" height="100%">
  <tr>
    <td align="center" valign="middle">[Your Site Here]</td>
  </tr>
</table>

```

Hope it helps…
