SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Guru
    Join Date
    Nov 2004
    Location
    calif
    Posts
    723
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    how can I center this recorder?

    How can I center this recorder on the webpage? The script comes with no CSS.


    Code:
    <!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>recorder</title>
    		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    		<script type="text/javascript" src="js/swfobject.js"></script>
    	</head>
    
    	<body bgcolor="#ffffff">
    		<div id="recorder"></div>
                  <script type="text/javascript">
                   // <![CDATA[
                   var so = new SWFObject("recorder.swf", "recorder", "620", "470", "9", "#000000");
    			   so.addParam('flashvars','filename=VideoZ&rtmpPath=rtmp://67.xxx.xxx.xxx/vid/&finishURL=player.html')
                   so.write("recorder");
                   // ]]>
                   </script>
    	</body>
    </html>

  2. #2
    SitePoint Enthusiast Bhjorth's Avatar
    Join Date
    Mar 2011
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    something like this you mean?
    Code:
    	<style>
    	body {
    		 margin: 0; 
    		 padding: 0; 
    		 text-align: center; 
    		
    	}
    	#recorder {
    		margin: 0 auto;
    		width:700px;
    	}
    	</style>


Bookmarks

Posting Permissions

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