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

Stop Notifications in iOS While Driving

This can be very annoying and dangerous. It's not the fact that you are using the Waze, Google Maps or the Here app to get from point A to point B. No different than using a Garmin GPS... the problem when using these GPS apps on an iPhone is that the little...

Beauty and the Beast Official Trailer #1

Need I say more? https://youtu.be/SqQvZ_VUtg8

Meet PLAYBULB Solar

“Unique water-resistant Bluetooth floating solar LED lights.”

Meet Rick Smith Jr., The Real-life Gambit

Rick Smith Jr’s card-throwing skills and accuracy is mind blowing!

Classify A Star

There is this neat program which is partially supported with funding from the National Science Foundation called SCOPE. The Stellar Classification Online Public Exploration program. Here they give people the chance to classify stars! This is an awesome way to keep...

Lenovo Thinkpad P50 For 3D CAD

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

Beyonce – Speed Painting by Steven Maguire

Artist: Steven Maguire Website: http://www.stevenmaguire.co.uk https://youtu.be/WSKruiv9Ul8

Why Are My Time Machine Backups Missing?

So you needed to enter Time Machine to retrieve a file or folder from a previous state, but all your restore points are greyed out or missing. What gives?

Box.com File Size Limit

There is a cap. The maximum file-size limit for Box uploads varies depending on your account type — from 250 MB to 32GB. For free personal use, you may upload a file up to 250 MB. Starter account gets you 2 GB, Business/Enterprise 5 GB, Digital Workplace Suite 5 GB,...

The Best Super Glue

I've tried many, and most of them have always dried up when stored, especially the famous Krazy Glue. I've tried the brush-on versions, the squeeze tube versions, and they suck. I manage to get 2 or 3 uses out of them, and 9 out of ten times, they dry up, and I have...