The normal centre align withinWordpress formatting bar will not allow you to center YouTube video. Instead simple html code will need to be applied. This same method can be apllied to google maps.
- Insert your YouTube video within wordpress post/page.
- Switch to HTML mode
- Find the code related to YouTube Video. This normally starts with <iframe src … and ends with </frame>
- Before <iframe, enter the following <div style=”text-align: center;”> and after </iframe> enter </div>
Example
before: <iframe src=”http://www.youtube.com/embed/2E–hBTQgfE” frameborder=”0″ width=”300″ height=”168″></iframe>
Add:<div style=”text-align: center;”><iframe src=”http://www.youtube.com/embed/2E–hBTQgfE” frameborder=”0″ width=”300″ height=”168″></iframe></div>