akhleshsrm 0 Posted June 14, 2016 Report 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. Quote Link to post Share on other sites
Ingolme 1,019 Posted June 14, 2016 Report 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. Quote Link to post Share on other sites
akhleshsrm 0 Posted June 15, 2016 Author Report 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??? Quote Link to post Share on other sites
Ingolme 1,019 Posted June 15, 2016 Report Share Posted June 15, 2016 I just did. Set the text-align property of the element that contains the video to "center". Quote Link to post Share on other sites
akhleshsrm 0 Posted June 15, 2016 Author Report Share Posted June 15, 2016 Thanks a lot... Quote Link to post Share on other sites
johnniewalk 0 Posted August 19, 2016 Report Share Posted August 19, 2016 You should use a html code and css code not the embedded code.. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.