# How do I center something on a page

**URL:** <https://forum.kirupa.com/t/how-do-i-center-something-on-a-page/204891>\
**Category:** web dev\
**Created:** [October 24, 2006, 12:53pm UTC](https://forum.kirupa.com/t/how-do-i-center-something-on-a-page/204891 "2006-10-24T12:53:26Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jimp](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/jimp/32/1747_2.png) [@Jimp](https://forum.kirupa.com/u/Jimp)\
**Post date:** [October 24, 2006, 12:53pm UTC](https://forum.kirupa.com/t/how-do-i-center-something-on-a-page/204891/1 "2006-10-24T12:53:26Z")

</div>

Ok this seems like a reallllly noobie question, but i cant figure out how to do it.

I have made a flash site, which I want to be in the very center of the page. I can center it, but it puts it in the middle at the top of the page, not in the very center of the page.

How can I make it so it is in the very center?

---

<div class="post-metadata">

**Author:** ![simplistik](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/simplistik/32/7747_2.png) [@simplistik](https://forum.kirupa.com/u/simplistik)\
**Post date:** [October 24, 2006, 1:13pm UTC](https://forum.kirupa.com/t/how-do-i-center-something-on-a-page/204891/2 "2006-10-24T13:13:05Z")

</div>

> **[HTML Editor, Website & Web Design Software](https://www.coffeecup.com/)**
>
> Leader in Responsive Web Design Tools and HTML Software. Try our HTML Editor, innovative Responsive Email Designer or Responsive Prototyping Software today.

---

<div class="post-metadata">

**Author:** ![Jimp](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/jimp/32/1747_2.png) [@Jimp](https://forum.kirupa.com/u/Jimp)\
**Post date:** [October 24, 2006, 2:52pm UTC](https://forum.kirupa.com/t/how-do-i-center-something-on-a-page/204891/3 "2006-10-24T14:52:40Z")

</div>

Hmm i cant seem to quite get my head around that… I suck at html. surely there must be an easy way using tables to center a .swf on a page?

---

<div class="post-metadata">

**Author:** ![Sinister\_Rouge](https://avatars.discourse-cdn.com/v4/letter/s/d78d45/32.png) [@Sinister\_Rouge](https://forum.kirupa.com/u/Sinister_Rouge)\
**Post date:** [October 24, 2006, 3:16pm UTC](https://forum.kirupa.com/t/how-do-i-center-something-on-a-page/204891/4 "2006-10-24T15:16:27Z")

</div>

put a valign tag within the table. valign=“middle”.

---

<div class="post-metadata">

**Author:** ![Jimp](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/jimp/32/1747_2.png) [@Jimp](https://forum.kirupa.com/u/Jimp)\
**Post date:** [October 24, 2006, 3:29pm UTC](https://forum.kirupa.com/t/how-do-i-center-something-on-a-page/204891/5 "2006-10-24T15:29:12Z")

</div>

EDIT: Scrap that, ive fixed it! I needed to set the table height too 100%. Id already tried this, and it didnt work, but cobined with valign=“middle” it seemed to do the trick. Cheers for your help guys!

---

<div class="post-metadata">

**Author:** ![simplistik](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/simplistik/32/7747_2.png) [@simplistik](https://forum.kirupa.com/u/simplistik)\
**Post date:** [October 24, 2006, 5:48pm UTC](https://forum.kirupa.com/t/how-do-i-center-something-on-a-page/204891/6 "2006-10-24T17:48:32Z")

</div>

The solution I provided you man is the “proper” solution, using a non-table based layout… which your layout and all layouts should be done in. If you’re not good at html, or just starting… it’s counter productive to start and learn using bad coding practices

[QUOTE=Sinister Rouge;1984401]put a valign tag within the table. valign=“middle”.[/QUOTE]ugh yea if you’re doin a table layout then this would work. ☹
