Flash swf in HTML, Worst problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rnvipin
    New Member
    • May 2009
    • 2

    Flash swf in HTML, Worst problem

    Hi all,

    I have made a 1000 x 600 (px) swf movie for a web and I embedded it in HTML. Now the problem is for some screen resolutions above 1024 x 768, the web is aligned to top left. I tried to put it in a div which aligned to center, then scrolling happens. I need a solution badly for this problem. Please check my site




    Thanks

    Vipin
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    Use
    Code:
    margin: 0 auto;
    -no need to use tables.

    Comment

    • Atli
      Recognized Expert Expert
      • Nov 2006
      • 5062

      #3
      Hi.

      You are also going to want to include a doctype at the top of your (X)HTML, or many of the browsers will go into quirks mode.

      In your case, the transitional XHTML doctype would probably be best:
      [code=html]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">
      [/code]

      Comment

      Working...