Table problem

I am using the new Dreamweaver MX 2004 and for some reason, when I try to make a table at a 100% hight and width and then centre the flash animaiton in the middle both vert and horiz it wont work? On the screen it looks great in DW but as soon as I preview it in the browser it centre’s it horiz but not vertical. It goes to the top of the page… not the middle.

Any ideas?:m:

That worked perfectly… thanks so much for the help dude. I guess I should have tried that!

Again - your a life saver, thanks!

yeah, that problem drove me insane for like a week until I was just like “ok, I KNOW that I have done this before VERY easily… I’m going into notepad” and then I did the exact same thing in notepad so I was like “ok, it’s got to be some crazy *** thing that dreamweaver adds in” So I just got rid of all that crap, and it worked… yey.

the reason why this works is because to be standards compliant, every document now requires a DOCTYPE tag. If the browser cannot find the DOCTYPE tag, it assumes you are writing older code, so uses a mode called ‘Quirks’ mode.

I know a CSS solution to your problem if you’re interested.

I am always interested in learing something new my man :slight_smile:

Lay it on me!

OK. :wink:

well, place this code in between STYLE tags at the top of the page:

#centered {
position:absolute;
top: 50%;
left:50%;
margin-left:-half width of flash movie;
margin-top:-half height of flash movie;
}

Then replace your table with this:

<div id=“centered”>flash code</div>

How this works is shown here:

http://www.bluerobot.com/web/css/center2.html

Sweet! awesome to know njs12345!

is there any problems with taking out the doctype tag? I mean is there any browser compatability issues or anything like that?

Hi there, I was wondering if somone could help.I have exactly the same problem as Sureshot and can only get the method of removing the !DOCTYPE tag to work.

I have tried the css method stated above but for some reason it forces my flash movie into the bottom-right corner of the browser window. What am I doing wrong ? I am also using Dreamweaver mx2004.

Any help would be greatly appreciated!

Regards,

Jason