How to Center Embedded Movies
Here is a quick note specifically to PaleHour blog owners, and I guess any other blog posters curious on the best way to center embedded objects (like YouTube videos) in your posts.

I've struggled with a proper way of pulling this off for quite some time. The most obvious solution is to simply wrap your post in <center></center> tags. Sadly, this easily understandable and remembered method is deprecated, so it makes a validation pass throw up at your code.

So, if you want to center your objects properly, the following code should do the trick and validate under xhtml strict.

<div style="text-align:center;">
Whatever the source site tells you to paste.
</div>
By Pale on May 7, 2008 at 10:14am EDT Topic(s): html embedded objects

Comments
Name:
Avatar (URL):
Website (URL):
Are you a robot?
Are you a person?



Log In
Username:
Password:
register

Popular Topics
beer (41)
games (37)
home cooking (35)
recipes (28)
new recipes (26)
restaurants (25)
show (22)
oil painting (22)
play it? (20)
dinner (19)

Recent Comments
Wonderful Memories
One of the most beautiful pictures I've ...
New Restaurant - Burrito Fresco
We'll definitely check it out again at s...
New Restaurant - Burrito Fresco
Hi! My name is Bitsy DeLorme and my hus...
About Williamsburg Farm
Hi Sue, Don't know why it took so long t...
Vacation - Sarasota Bar Hopping
I started the Cock & Bull Pub in 1997. B...

Archive
+ 2007
+ 2008
+ 2009
+ 2010
+ 2011
+ 2012
+ 2013