PDA

View Full Version : Center Flash loaded with SWFObject


CPedrick
11-10-2006, 07:18 PM
Wasn't sure whether to start a new thread with this question or not. appologies if I mis-guessed...

I am using SWFObject to load a Flash navigation on the top of a browser window. I want the navigation to be centered in the window if the user re-sizes it.
Unfortunately, it is always appearing flush-left. I've tried align=center; in the DIV tag, in a TABLE tag, in a <TD> tag, all to no avail. There is no "float= " in my stylesheet. I can't find where the left alignment is coming from. (I'm pretty sure the default alignment is supposed to be centered in the window, so *something* appears to be changing it.)

All thoughts greatly appreciated...

TIA,
Carolyn

CPedrick
11-10-2006, 07:30 PM
Nevermind.... (as they say).
I figured it out.
The "sample" html file that explains SWFObject includes a #flashcontent style. I deleted it and the object nicely sits aligned in the center of the window.
I am mystified as to why this created a problem since there was no mention of alignment in the style - only height and width, but cutting it out appears to have solved the issue and I won't argue with success...