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.
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.
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,
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.