It works same for other way, if browser height is below 390px it only scales by height and width is 640px (if browser width is greater than 640px).
Code: Select all
<a href="//www.youtube.com/embed/$2?autoplay=1&loop=1&rel=0&theme=light&wmode=transparent" target="_blank" class="youtube highslide" onclick="return hs.htmlExpand(this, {objectType: 'iframe', width: 640, height: 390, allowWidthReduction: true, wrapperClassName: 'draggable-header', preserveContent: false, objectLoadTime: 'after'})">
<img style="width:360px;height:270px;" src="//img.youtube.com/vi/$2/0.jpg" class="youtube-thumbnail" alt="" />
</a>
Sorry for my english, and thanks for any kind of help.