1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Centering video player on a sales page?

Discussion in 'Web Design' started by wahidpolin, Jan 14, 2011.

  1. wahidpolin

    wahidpolin Regular Member

    Joined:
    Dec 25, 2009
    Messages:
    441
    Likes Received:
    260
    I am using jw player as a video player in one of my sales page but having trouble to get it centered in the page.

    I have set the margin to auto but it's not working.

    heres the html

    Code:
    <div id="videocontainer">
     <object id="player" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" name="player" width="328" height="200"> 
            <param name="movie" value="player.swf" /> 
            <param name="allowfullscreen" value="true" /> 
            <param name="allowscriptaccess" value="always" /> 
            <param name="flashvars" value="file=video.mp4&image=preview.jpg" /> 
            <embed 
                type="application/x-shockwave-flash"
                id="player2"
                name="player2"
                src="player.swf" 
                width="328" 
                height="200"
                allowscriptaccess="always" 
                allowfullscreen="true"
                flashvars="file=video.mp4&image=preview.jpg" 
            /> 
        </object>
     </div>
     
  2. brokenhero

    brokenhero BANNED BANNED

    Joined:
    Sep 4, 2010
    Messages:
    97
    Likes Received:
    25
    You should add table and then add videos in the tag and in tag use hope it helps
     
  3. premier_vendor

    premier_vendor Registered Member

    Joined:
    Nov 9, 2008
    Messages:
    52
    Likes Received:
    10
    Have you defined the width of your videocontainer? Try this:

    Code:
    #videocontainer {
        width:328;
        margin-left: auto;
        margin-right:auto;
    }