Educating Students in the 21st Century
Bio
Middle School Lessons
High School Lessons
Acrylic Painting Computer Art
Craft
Installation Art
Jewelry
Mixed Media
Oil Painting
Printmaking
3D
Watercolor
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011

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 Mike 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
oil painting (10)
middle school lessons (7)
2004 (7)
high school lessons (6)
painting (6)
2007 (5)
mixed media (5)
2010 (5)
3d (4)
2008 (4)

Recent Comments
Scholastic Art Awards 2010
cKjn
Scholastic Art Awards 2010
cKjn
Educator and Artist
Ywoo
Educator and Artist
Ywoo
Happy Halloween Everyone!
CjbX

Archive
+ 2008
+ 2009
+ 2010
+ 2011
+ 2013