Centering video player on a sales page?

wahidpolin

Regular Member
Joined
Dec 25, 2009
Messages
441
Reaction score
263
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>
 
You should add table and then add videos in the tag and in tag use hope it helps
 
Have you defined the width of your videocontainer? Try this:

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