Skip navigation
Currently Being Moderated

Help Please :( Center swf in dreamweaver

Jul 20, 2009 4:39 AM


I am so stressed out at doing this this. Ive been trying for over a week


I have a 800px x 600px swf file which i have placed in to dreamweaver.

And under the code section i have put this code under <body>

<table height="100%" width="100%">

<tr align="center" valign="middle"><td>

and then before i close the code i put:





And yes it centers horzontally BUT vertically it just stays at the top.

Could any of use help please i would really appricate it.



  • Currently Being Moderated
    Jul 20, 2009 10:21 AM   in reply to kobe_b

    Have you tried just publishing the html from Flash? That may put the swf right where you need it.


    You could also go to Modify > Page Properties and change the margins from that dialog box.


    I'm not sure what you are after, it seems centered to me.


    Hope I helped a bit.



    Mark as:
  • Currently Being Moderated
    Jul 20, 2009 10:16 AM   in reply to kobe_b

    800 x 600 will take up the majority of most viewports.  Honestly, I don't think you need vertical centering.


    Pure CSS, horizontal & vertical centered


    CSS with Table, horizontal & vertical centered


    Good luck with your project,


    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists

    Mark as:
  • Currently Being Moderated
    Jul 21, 2009 7:43 AM   in reply to kobe_b

    Is the swf part of other elements on the HTML page or is it the only element? If the latter is the case, I advise having it as close to the top of the page as possible (my opinion). With so many people using lap top now days, the less you can make people scroll the better. Now if the swf is amoung other page elements, you would be better off placing it using CSS. If you want, attach your files so I can see exactly what you are trying to do.



    Mark as:
  • Currently Being Moderated
    Jul 22, 2009 12:51 PM   in reply to kobe_b

    Go in design view and select your swf file and the center it

    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points