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
Please log in to post a response.
Please Log In
Username:
Password:
register

Popular Topics
games (37)
oil painting (22)
play it? (20)
nintendo world report (15)
writing (14)
shows (10)
blogs (10)
2004 (10)
inspiration (9)
wii (9)

Recent Comments
Kinetic Sculpture
Thanks so much for your comment... I ...
Kinetic Sculpture
I used this project with my high school ...
Scholastic Art Awards 2010
I really like the tilt shift series, esp...
Technology Challenge
cool, i'm glad you won!
Technology Challenge
The things included in the picture with ...

Archive
+ 2007
+ 2008
+ 2009
+ 2010