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

Megan Fox Speed Painting by Nico Di Mattia

Speed Painting of Megan Fox by Nico Di Mattia.

PLDT Plans To Sell Meralco Stake

PLDT plans to sell Meralco stake to reduce debt and fund capital spending.

Buy One, Get One FREE Pretzel!

Who loves pretzels? Whether it's for your own indulgence or for sharing, buy one and there's free one for taking! This offer is valid at participating U.S. Auntie Anne’s locations, expires Sept. 6, 2017. One coupon per purchase.

Theta Binaural Beat

“OM Mantra mixed with native drum rhythm, theta 4,5 hz binaural beats, didgeridoo, sitar, solfeggio 852Hz & 963Hz and monk chanting.” – ZenLifeRelax

Gdansk

Oats Studios just got medieval on fans!

Eggie 2.0, The Pest Repelling Nightlight

“EGGIE is back and enhanced, now with added pest-repelling features and improvements on its original characteristics.” – Nocturne Designs Inc.

Meet The New ilumi

Love this new smartbulb! Source: The New ilumi. A Better Smartbulb. by ilumi solutions —Kickstarter

Lost in Space Official Trailer

Lost in Space is back in this new reboot available on Netflix!

…All Such Opposites, For The Harmony Of The Whole

”True instruction is this: —to learn to wish that each thing should come to pass as it does. And how does it come to pass?” ~Epictetus

All the Money in the World Trailer #1 (2017)

A film is based upon the historical events surrounding the kidnapping of John Paul Getty III.