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

Surveying A Home’s Floor Elevation

It’s not as simple as one might want it to be.

Can You Get A Stylist For A Kindle?

Emailed from a friend of mine. While reading questions directed towards users of the Kindle Paperwhite I came upon this question and answer which rose to the top of the list with nearly 1650 votes.. nearly 1600 over any other reviewers response.. Question Can you get...

Organize Your Menu Bar With Bartender For Mac

Take control of your menu bar with Bartender!

Mini DisplayPort DP to VGA Adapter For Mac

What your options are for hooking up a Mac with Mini DisplayPort DP to a projector that uses VGA connector.

Why One May Prefer A Shared Printer Instead of a Network Printer

The pros and cons of a shared printer but why would you want one given the right environment.

Save The Biscayne Aquifer

Don’t store nuclear waste near our drinking water source.

Evolution Of World’s Tallest Building: Size Comparison (1901-2022)

“A 3D Size Comparison of the World’s Tallest Building as its changed throughout our history!” -FilmCore

Hard Drives 2017

My choices of hard drives in 2017 and why.

Iyengar: The Man, Yoga, and the Student’s Journey – Official Trailer

Focused primarily on the master teacher’s later life and impact in India before his death in 2014, Clennell’s film captures intimate moments of discussion with Iyengar, his granddaughter Abhijata, and some of the people who have incorporated Iyengar’s principles into their own rehabilitation therapies. -sadhakafilm.net

Macaroni Marinara ala Trader Joe’s

This dish is very simple and technically vegetarian if you choose to go without the meatball or use vegetarian meat if you wish to go full vegetarian. This meal costs only roughly $5 to make which is good for a family serving. Ingredients: Trader Joe’s Macaroni Pasta...