Everybody! This is important. In a few days, these forums will be moving over to using the totally sweet Discourse platform. To ensure this migration happens smoothly with no loss of content, these forums are currently in a read-only mode. I do apologize for the inconvenience.

There is never a good time to turn the forums off for an extended period of time, but I promise the new forums will be a billion times better. I'm pretty sure of it.

See you all on the other side in a few days, and if you have any (non-technical) questions, please e-mail me at kirupa@kirupa.com. For technical questions, try to find a tutorial that corresponds to what you are looking for and post in the comments section of that page.


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: http://www.untitled-project.com/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="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,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="http://www.macromedia.com/go/getflashplayer" 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 kirupa.com Meet the Moderators Advertise

 Link to Us


Copyright 1999 - 2012