|
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
|