# Html

**URL:** <https://forum.kirupa.com/t/html/4790>\
**Category:** Uncategorized\
**Created:** [August 20, 2002, 4:16pm UTC](https://forum.kirupa.com/t/html/4790 "2002-08-20T16:16:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Scrow\_J](https://avatars.discourse-cdn.com/v4/letter/s/ecccb3/32.png) [@Scrow\_J](https://forum.kirupa.com/u/Scrow_J)\
**Post date:** [August 20, 2002, 4:16pm UTC](https://forum.kirupa.com/t/html/4790/1 "2002-08-20T16:16:17Z")

</div>

hello… does any one know the html script for centering obgects on the page? You see… i made a site in flash mx… and i published it in html… but it isnt in the center… and id like it to be right in the middle of a page… i have tried vspase and hspace tags, but they dont seem to work…

here’s the script for the page… plz tell me wat changes i have to make:

\<HTML\>  
\<HEAD\>  
\<meta http-equiv=Content-Type content=“text/html; charset=ISO-8859-1”\>  
\<TITLE\>daa\</TITLE\>  
\</HEAD\>  
\<BODY bgcolor="#999999"\>  
\<!-- URL’s used in the movie–\>  
\<A HREF=http://www.geocities.com/csclandaa/intro.html\>\</A\> \<A HREF=http://www.b2g2.com/boards/board.cgi?user=daa\>\</A\> \<!-- text used in the movie–\>  
\<!–BACKGROUND–\>\<OBJECT classid=“clsid:D27CDB6E-AE6D-11cf-96B8-444553540000”  
codebase=“[http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0](http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0)”  
WIDTH=“800” HEIGHT=“400” id=“daa” ALIGN=""\>  
\<PARAM NAME=movie VALUE=“daa.swf”\> \<PARAM NAME=quality VALUE=high\> \<PARAM NAME=bgcolor VALUE=#999999\> \<EMBED src=“daa.swf” quality=high bgcolor=#999999 WIDTH=“800” HEIGHT=“400” NAME=“daa” ALIGN=""  
TYPE=“application/x-shockwave-flash” PLUGINSPAGE=“[http://www.macromedia.com/go/getflashplayer](http://www.macromedia.com/go/getflashplayer)”\>\</EMBED\>  
\</OBJECT\>  
\</BODY\>  
\</HTML\>

---

<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:** [August 20, 2002, 4:18pm UTC](https://forum.kirupa.com/t/html/4790/2 "2002-08-20T16:18:21Z")

</div>

forgot that the html script will be used…

---

<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:** [August 21, 2002, 1:07pm UTC](https://forum.kirupa.com/t/html/4790/3 "2002-08-21T13:07:53Z")

</div>

Use a table set to 100% width and height, then embed your Flash movie in the centre of the table, like you would a graphic or some text. This way whatever the suers’ screen res, the movie will be in the middle. 🙂

---

<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:** [August 28, 2002, 6:03am UTC](https://forum.kirupa.com/t/html/4790/4 "2002-08-28T06:03:37Z")

</div>

kitiara, since it doesnt seem that he has much knowledge of HTML I’ll elaborate on what you said:

table  
tr  
td align=“center” flash embed goes here /td  
/tr  
/table

OR you could just preceed your embed tag with a center  
and follow with /center  
note: I left out the brackets.

hope this all helps.

Peace

---

<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:** [September 25, 2002, 8:46pm UTC](https://forum.kirupa.com/t/html/4790/5 "2002-09-25T20:46:18Z")

</div>

Or you can put it in a \<div\>layer in CSS.  
Example:  
\<div id=“Layer1” style=“position:absolute; width:200px; height:115px; z-index:1; left: 220px; top: 10px”.  
I do not close the tag, otherwise it does not show.  
after that you use the embed and the object taf. In the middle you put the swf movie.  
And of course the closing tags for embed and object

div\>

works always fine to me.

God Luck!
