akhleshsrm Posted June 14, 2016 Share Posted June 14, 2016 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. Link to comment Share on other sites More sharing options...
Ingolme Posted June 14, 2016 Share Posted June 14, 2016 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. Link to comment Share on other sites More sharing options...
akhleshsrm Posted June 15, 2016 Author Share Posted June 15, 2016 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??? Link to comment Share on other sites More sharing options...
Ingolme Posted June 15, 2016 Share Posted June 15, 2016 I just did. Set the text-align property of the element that contains the video to "center". Link to comment Share on other sites More sharing options...
akhleshsrm Posted June 15, 2016 Author Share Posted June 15, 2016 Thanks a lot... Link to comment Share on other sites More sharing options...
johnniewalk Posted August 19, 2016 Share Posted August 19, 2016 You should use a html code and css code not the embedded code.. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now