Table centring
A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Table centring

  1. #1
    Junior Member
    Join Date
    Nov 2006
    Posts
    20

    Table centring

    Hi,

    I've made a small site in Flash and created a table in HTML to import the SWF file, which is the complete site.

    Each time I test the site the browser displays the SWF in the top left corner?

    How can I center the table? - would anyone be kind enough to post up sample code.

    Cheers

  2. #2
    not'n' wrong with hat'n' sushi iHATEsushi's Avatar
    Join Date
    May 2006
    Location
    Ontario
    Posts
    132
    You can uss CSS to style the placement of your swf. Are you familiar with CSS?


    Quote Originally Posted by clarke121
    Hi,

    I've made a small site in Flash and created a table in HTML to import the SWF file, which is the complete site.

    Each time I test the site the browser displays the SWF in the top left corner?

    How can I center the table? - would anyone be kind enough to post up sample code.

    Cheers

  3. #3
    Junior Member
    Join Date
    Nov 2006
    Posts
    20

    Done it

    Thanks I used CSS to sort it out.

    Cheers

  4. #4
    Senior Member
    Join Date
    Apr 2006
    Posts
    431
    or you can use this, without using css :


    <TITLE>yourtitle</TITLE>


    </HEAD>
    <BODY bgcolor="white" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
    <TABLE width="100%" height="100%" border="0">
    <tr>
    <td align="center" valign="middle"><table width="700" height="450" border="0" cellpadding="2" cellspacing="0"
    <tr>
    <td><object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="700" height="450">
    <param name="movie" value="yourmovie.swf">
    <param name="quality" value="high">

    <param name="menu" value="false">

    <embed src="yourmovie.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="700" height="450"></embed>
    </object></td>
    </tr>
    </table>
    </td>
    </tr>
    </table>

    </BODY>
    </HTML>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width


HTML5 Development Center

Poll by Flashkit.com