The forums have permanently moved to This forum will be kept around in read-only mode for archival purposes. To learn how to continue using your existing account on the new forums, check out this thread.

Results 1 to 3 of 3

Thread: Vertically centering an SWF?

  1. #1

    Vertically centering an SWF?

    Okay, I've got a Flash movie in an HTML page. The SWF is 590px high, and 100% wide. That is, 100% of the HTML page's width, which makes the movie centered horizontally, but I can't figure out how to have it centered vertically. If I make the hieght 100%, it doesn't work properly in all browsers.


    I think you should visit my site.

  2. #2
    Hi, this is something Ive done to center flash on my sites photolog: (view source to see)

    Add this CSS in the head:
    <style type="text/css">
    html, body {

    And in the body:

    <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
    <td align="center" valign="middle"><object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase=",0,29,0" width="100%" height="500">
    <param name="menu" value="false">
    <param name="movie" value="imageVue.swf">
    <param name="quality" value="high">
    <param name="BGCOLOR" value="#EAE7DF">
    <param name="FLASHVARS" value="">
    <embed src="imageVue.swf" width="100%" height="500" menu="false" quality="high" pluginspage="" type="application/x-shockwave-flash" bgcolor="#EAE7DF" flashvars=""></embed></object>

    That should do it

  3. #3
    Thanks so much. That's EXACTLY what I'm looking for.

    For your third (non-Random) post ever, that was extremely helpful

    I think you should visit my site.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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

Home About Meet the Moderators Advertise

 Link to Us


Copyright 1999 - 2012