# Centered (vertical/horizontal)?

**URL:** <https://forum.kirupa.com/t/centered-vertical-horizontal/10297>\
**Category:** Uncategorized\
**Created:** [December 28, 2002, 11:35pm UTC](https://forum.kirupa.com/t/centered-vertical-horizontal/10297 "2002-12-28T23:35:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![DJ\_LIQUID](https://avatars.discourse-cdn.com/v4/letter/d/cdc98d/32.png) [@DJ\_LIQUID](https://forum.kirupa.com/u/DJ_LIQUID)\
**Post date:** [December 28, 2002, 11:35pm UTC](https://forum.kirupa.com/t/centered-vertical-horizontal/10297/1 "2002-12-28T23:35:12Z")

</div>

Hmm…im scratchin my noggin trying to figure this out :-\

The flash movie is in the center (horizontal and vertical) no matter how the window is resized

i know how to get it to center horizontally…but not vertical???

any help?

thanks

and happy holidays to everyone \<:}

---

<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:** [December 28, 2002, 11:40pm UTC](https://forum.kirupa.com/t/centered-vertical-horizontal/10297/2 "2002-12-28T23:40:29Z")

</div>

Change your td tag to have a valign setting.

```php
<TD VALIGN="top">content</TD>

```

---

<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:** [December 28, 2002, 11:59pm UTC](https://forum.kirupa.com/t/centered-vertical-horizontal/10297/3 "2002-12-28T23:59:25Z")

</div>

the best way to do this is to use tables here is the code

You will have to play with the dimensions of the flash area to suit the size of your movie. But no matter what the movie will be in the middle this way.

Be sure to set your bottom, top, left and right margin to 0

```php

<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
  <tr> 
    <td height="50%" colspan="3">&nbsp;</td>
  </tr>
  <tr> 
    <td width="50%" height="200">&nbsp;</td>
    <!-----####the transparent gif is just a place holder####--->
    <td width="400" bgcolor="#CCCCCC">put your flash movie here<img src="transparent.gif" width="400" height="1"></td>
    <td width="50%" height="200">&nbsp;</td>
  </tr>
  <tr> 
    <td height="50%" colspan="3">&nbsp;</td>
  </tr>
</table>

```

---

<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:** [December 30, 2002, 1:29pm UTC](https://forum.kirupa.com/t/centered-vertical-horizontal/10297/4 "2002-12-30T13:29:40Z")

</div>

Are you using dreamweaver?

If you are, ill explain it to you!!

=)

---

<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:** [December 31, 2002, 6:28am UTC](https://forum.kirupa.com/t/centered-vertical-horizontal/10297/5 "2002-12-31T06:28:36Z")

</div>

yea im using Dreamweaver MX

That code that 3d-iva posted worked

but I’m open to what your explanation :beam:
