Ads By Google

How To Align YouTube Videos In WordPress Post

Youtube Video Align

Under normal circumstances, when we want to align images, WordPress will give us the options when we upload the particular image. On the other hand, if the image source is from a different site and you have permission to use it, you can use the div align tag to align the image manually to our preferences. All you have to do is to wrap the image source codes with the div align tags like this:

<div align="center">The Image Source code</div>

All your images will be aligned to the center of your post. It can also be aligned to the left or right.

Similarly, if you want your embedded videos to be aligned to the center of your post, you too can use the same tags like the example below.

<div align="center">
<object width="340" height="285"><param name="movie" value="http://www.youtube.com/v/RexXDDA8RoI&hl=en_US&fs=1&rel=0&border=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/RexXDDA8RoI&hl=en_US&fs=1&rel=0&border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="340" height="285"></embed></object></div>

This will result in your videos sitting right at the center.

Nice and neat. While you are here, enjoy the video. It never cease to amaze me as to how in 1928, when computers and CGI software have not been invented yet, these guys can come up with such lively cartoons.

Share This Post
Ads By Google
 

Free Updates

Subscribe to receive Free WordPress Theme Tips, Reviews and Discount Codes

Related WordPress Theme Tips

Align Image In Post WordPress 2.7More than a year ago, I posted the stylesheet codes for aligning images in your WordPress posts. Times have changed and WordPress has added many new advanced features. One of...

How To Add A Frame Around YouTube Videos In WordPressSomething I did out of boredom today. Saw lots of blogs embedding their Youtube videos in the same boring style, so I thought it would be nice if we were...

How To Create A Beautiful Background For Your WordPress PostNow this is purely for pleasure only, but maybe on some occasions it could be useful. Having a beautiful background for certain post will bring out the mood for in...

How To Align Your WordPress Quotes Left Or RightImage via Wikipedia Sometimes we will want to quote some phrases to make it more outstanding so as to grab the attention of our readers. Of course in WordPress there...

How To Embed YouTube Videos In GmailJust read that we can now embed YouTube Videos in Gmail. Real Cool Man! Share This Post...

Those who found this page were searching for:

  1. wordpress.org alinear videos youtube
  2. center youtube video in wordpress page
  3. youtube video centreren plaatsen wordpress
  4. align youtube wordpress thesis
  5. how to center all wordpress posts
  6. wordpress how to center youtube videos
  7. allign post in center wordpress
  8. to arrange videos in wordpress like a youtube videos
  9. aligning embedded videos in wordpress
  10. you tube: how to center align video in blog

12 Responses to “How To Align YouTube Videos In WordPress Post”

Read below or add a comment...

  1. affiliate associate marketing program says:

    i usually use if I want the video centered. Before, I get really frustrated when the video frame is not where i intended it to be.

  2. Tony says:

    Awesome tip! Thanks for sharing.

  3. Mitko says:

    I just use

  4. Mitko says:

    sigh this code in comments

    • Costa says:

      Just testing the code tag.

      <div align="center">all my text</div>

      okay, should be fine the next time you use the code tag. Sorry about that. :-)

  5. Mitko says:

    hi hi hi :) what do u type cause I can’t achieve that effect really…. all I wanted to say is that i use the center tag but this might save me a minute or 2 as well :)

    • Costa says:

      Rest easy mate, it’s no fault of yours. It’s on my side. I’ve fixed it and you can use the code tag from now on in the comments.

      • Mitko says:

        Oh all right :) I thought I am an idiot for not being able to make it work. I tried it on my comments as well, not working, will look into it :) although it’s not that big a deal

  6. zach says:

    Thanks for the tips.. :)

  7. OMG! I think this has actually worked, I’ve been trying to find a way to get YouTube vids working in a WordPress blog for a while now and was having a problem centering them!

    Thanks!!

Trackbacks

  1. Tweets that mention How To Align YouTube Videos In WordPress Post | WordPress Theme Customizations -- Topsy.com says:

    [...] This post was mentioned on Twitter by emELLem jOE, Costa. Costa said: Latest update from Blogigs.com – How To Align YouTube Videos In WordPress Post Read all of it here http://bit.ly/76RKQX [...]

  2. uberVU - social comments says:

    Social comments and analytics for this post…

    This post was mentioned on Twitter by BloGigs: Latest update from Blogigs.com – How To Align YouTube Videos In WordPress Post Read all of it here http://bit.ly/76RKQX...