Jump to content
Sign in to follow this  
akhleshsrm

Html video

Recommended Posts

i am just trying to align a video to center with <embed> tag like that <embed align="center"> but its not working . I want to know the reason? (i am using google chrome)

Please help me.

 

 

I am just trying to repeat a audio 3 times and set it like that :

<embed src="myaudio.mp4" width="100%" height="200" autostart="true" loop="3">

but it is not working for me.

Share this post


Link to post
Share on other sites

You should use the <video> element, not embed.

 

To center it, use CSS. Since the video is an inline element, you can center it using the text-align property of the parent element.

Share this post


Link to post
Share on other sites

yeah sure, I will definetely use the <video> tag and will use CSS for alignment but i was asking for learning purpose.

Can u explain the CSS rule to align a video to center???

Share this post


Link to post
Share on other sites

I just did. Set the text-align property of the element that contains the video to "center".

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...