It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming HTML Forum

Align swf

Align swf

Postby pm4698 on Sat Oct 22, 2011 11:54 pm

Hi there.
I use the following code to show a swf file and align it vertically and horizontically but i can do only the horizontal alignment.

Any help about the vertical?

Thanks in advance
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
  <head>
    <title>Site</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-utf-8" />
     <style type="text/css" media="screen">
                        body { margin:0; text-align:center; }
                        div#content { text-align:center; vertical-align:middle;}
                        object#content { display:inline; vertical-align:middle;}
                </style>       
   <script type="text/javascript" src="swfobject.js"></script>

    <script type="text/javascript">
    swfobject.embedSWF("main.swf", "myContent", "1400", "910", "9.0.0");
    </script>

  </head>
<body>
    <div style="vertical-align:middle">
      <div id="myContent" style="vertical-align:middle"></div>
      </div>
  </body>
</html>
pm4698
 
Posts: 1
Joined: Sat Oct 22, 2011 11:50 pm

Who is online

Users browsing this forum: No registered users and 8 guests