A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: centering a flash site..

  1. #1
    humm, maybe this is a very dumb question, but what the heck!
    I cant seem to center the swf when making a site. I go to publish-settings and set the flash-alignment on center/center and its still in the upperleft corner of the page! help!

  2. #2
    FK Bored Crew
    Join Date
    May 2000
    Posts
    349

    I like whipped cream. I REALLY like whipped cream!

    I just use the <CENTER></CENTER> tags immediately after the <BODY> tag of the html doc...

    <HTML>
    <BODY>
    <CENTER>
    <ALL THE FLASH EMBED CRAP>
    </CLOSE ALL THE FLASH EMBED CRAP>
    </CENTER>
    </BODY>
    </HTML>

    Hope this helps!

    -fishee

  3. #3
    ha ! I like whipped cream too!! yummie

    thanx Fishee, I thought you could do that in Flash, so I have to edit the html.. thanx very much ( I am very ****ty at everything that has to do with script )

  4. #4
    FK Bored Crew
    Join Date
    May 2000
    Posts
    349

    Where'd I leave my ginko-biloba?

    That's OK, I suck at flash, hehehehe

    -fishee

  5. #5
    Junior Member
    Join Date
    Jul 2000
    Posts
    29

    Use a table!

    Another idea, would be to use a table, like such:

    <HTML>
    <BODY>

    <TABLE WIDTH="100%" HEIGHT="100%">
    <TR VALIGN="middle">
    <TD ALIGN="center">

    <OBJECT> -- Embedded Flash Code -- </OBJECT>

    </TD>
    </TR>
    </TABLE>

    </BODY>
    </HTML>

    I know it's a little more code, but it will center it horizontally AND vertically in the browser window, no matter what resolution the viewer is using.

    Hope you find this useful!

  6. #6
    hey, thats not a bad idea! thanx!

  7. #7
    Senior Member
    Join Date
    Jul 2000
    Posts
    126

    thats the better way

    Depends on how you want to center it .. But making the table will put it definitley in the CENTER of the page, where as the other one will on cernet it at the middle horizontally and not vertically ..


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center