It's complicated. Let's start with what I'm doing.
I use the Masonry JQuery Plugin (http://desandro.com/demo/masonry/docs/basic-single-column.html) to align the various divs (.box). I am using a script that extends div.box from the original width of 200px to 400px in width. Pressing again crashes .box. It all works great. See what I'm doing here: http://jsfiddle.net/ryanjay/fgNMJ/
What I want to do is also display the video. Paste them either from YouTube or from Vimeo (preference). I can add the embed code from the Vimeo video to .box and resize it using this jQuery code:
$('.video').css({
width: '100%',
height: 'auto'
});
HTML will look like this:
<div class="box" id="videoBox">
<iframe src="http://player.vimeo.com/video/16916715?title=0&byline=0&portrait=0&color=ffffff" width="400" height="225" frameborder="0" class="video"></iframe>
</div>
"" . 200 , - . , : http://jsfiddle.net/ryanjay/P3RBx/
, , , , . , , 400 , - , , , .
, , , , , , .
, , , , - . . , , . - , , , jsFiddle . , , . , !