Misbehaving Youtube videos and how to tame them
As if anyone's website features a column width of 425, YouTube videos, which are themselves that width, often appear awkwardly flushed left. Simply bracket the embed code with center tags to get them spaced properly for your website, like so:

You can also expand the video itself to fit your space, which involves plugging in your desired width (say 500px) and determining the closest 4:3 ratio. In the case of the video below, I took YouTube's 425:344 and made it 500:405, then added center/uncenter tags.
Does this mean we will now go back and center all the Youtube videos on this site? No it does not.
See also: Meet the Youtube filmmakers

You can also expand the video itself to fit your space, which involves plugging in your desired width (say 500px) and determining the closest 4:3 ratio. In the case of the video below, I took YouTube's 425:344 and made it 500:405, then added center/uncenter tags.
Does this mean we will now go back and center all the Youtube videos on this site? No it does not.
See also: Meet the Youtube filmmakers

0 Comments:
Post a Comment
Links to this post:
Create a Link
<< Home