SitePoint Sponsor |
|
User Tag List
Results 1 to 4 of 4
Thread: centering?
-
Jul 28, 2003, 10:44 #1
centering?
How do I have my flash doument align in the middle of a html doument. In the center of the page? Is there some code?
-
Jul 28, 2003, 10:56 #2
- Join Date
- May 2001
- Location
- toronto
- Posts
- 478
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
i don't think you can...
well you can trick it for horizontal alignement - just put the code inside a table and set the table to align="center"
well.. i guess you could also make 3 rows - set table hight to 100% then put your content into the middle cell and set that to valign="middle"
though i don't think that will work - not the vertical alignment anyways... but you can set the window to open to the exact size of the move using JS... on the button that calls the swf file.
hopefully this helped.
-
Jul 28, 2003, 12:50 #3
- Join Date
- Mar 2002
- Location
- New York, NY
- Posts
- 170
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
the best way to do this would be via css and negative margin values:
put this code in the <head> tag:Code:<style type="text/css"><!-- .movie { position: absolute; left: 50%; top: 50%; margin-left: -XXXpx; margin-top: -YYYpx; } --></style>
then, simply place class="movie" in your <embed> tag i.e.:Code:<embed src="flashMovie.swf" class="movie" height="XXX" etc.>
zingBetter-Barter.com
Logo store full of unique, professional identities
perfect for you or your client!
-
Jul 28, 2003, 16:43 #4
- Join Date
- Mar 2003
- Location
- Houston, Texas
- Posts
- 758
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
heh good idea, didnt think of that CSS trick
Bill Erickson
New Media Entrepreneur
Bookmarks