Fluid Width Video For YouTube

by | Nov 14, 2016 | Web Development | 0 comments

My problem… getting an embedded YouTube video to automatically resize according to container sizes.

This is how you would post the embeded video:

<div class="videoWrapper">
    <!-- Copy & Pasted from YouTube -->
    <iframe width="560" height="349" src="http://www.youtube.com/embed/n_dZNLr2cME?rel=0&hd=1" frameborder="0" allowfullscreen></iframe>
</div>

Then add the following custom CSS:

.videoWrapper {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 */
	padding-top: 25px;
	height: 0;
}
.videoWrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

Source with more info on other video sources: https://css-tricks.com/NetMag/FluidWidthVideo/Article-FluidWidthVideo.php

IT – Official Teaser Trailer

The 2nd adaptation of “IT” looks amazingly horrifying!

Lenovo Thinkpad P50 For 3D CAD

Lenovo’s thinnest and lightest full-function mobile workstation yet.

The Shack Official Trailer – “Believe” (2017)

Official Movie Trailer “Believe” for The Shack.

Thanking Someone For a Referral

The key saying would be: "Thank you for referring your friend to me"   More ideas and samples can be found here: Referral Thank You Letter Samples

Meet Waris Kareem, An 11-Year Old Artist

“From a makeshift studio in a poor neighbourhood in Lagos, Waris Kareem produces incredibly life-like works of art” – CGTN Africa

Using An Android Phone And A Mac

Great ways to improve your Android/Mac workflow!

OK Go – Obsession

Who knew OK Go and 567 printers would be so cool? The timing and programming to create this video is impressive!

The Cove (2009) Trailer

This movie is disturbing to watch BUT it's the truth that exposes the Taiji dolphin slaughter. https://www.youtube.com/watch?v=4KRD8e20fBo Further reading: The Cove Hunt Is on Again, Which Means Dolphins Are in Danger  

Will Ferrell USC Commencement Speech 2017

I will never get tired of Will Ferrell.

A Study Claims Marmite Can Help Against Dimentia

Study claims Marmite helped protect against Alzheimer’s and Parkinson’s.