PaleHour Features



PHN Sites







Friends



PaleHour Twitters


PaleHour Flickrs

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
games (37)
show (22)
oil painting (22)
play it? (20)
dinner (19)
home cooking (17)
beer (17)
nintendo world report (15)
writing (14)
restaurants (12)

Recent Comments
Mike's Recipe, Jan. 2012 - Waterzooi
This recipe looks great, and your knife ...
Year Two - 2011 Garden Journal
Wow! Impressive. Your yard looks cool. I...
Year Two - 2011 Garden Journal
Erie is so tiny in those pictures! :) An...
New Restaurant - The Owl House
I don't remember his name, but he was a ...
New Restaurant - The Owl House
Andrew and I have been wanting to check ...

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