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

Science Vs. Music

Nigel Stanford’s CYMATICS: Science Vs. Music – brilliant music and visualization.

S. White Owns Her Drums

I’ve never seen a drummer play so happy until now!

Meet SpotMini

The robot dog that can run, hop and open doors.

“There Was A Problem Connecting To The Server…”

Solution to the never-ending “There was a problem connecting to the server…” problem.

Ujjayi Breathing

Ujjayi Breathing explained.

Meet VARRAM, A Smart Robot For Your Pet

A friendly, pet robot with a mobile application to keep your pet active, happy and healthy while you’re away.

A Whole World Of New Questions

Pushing the boundaries.

What’s new in ArchiCAD 23?

Reduced file sizes, the additional view options for columns and beams, the ability to rename layer combination, MVOs, Pen Sets, Renovation Filters, Graphic Override Combos or 3D styles without having to point the view set parameters to the renamed settings are some of the new enhancements in ArchiCAD 23!

Yoga Flow

An animated short by Dylan Glynn showing the beauty and rhythm of vinyasa.

Skyflakes Breaded Fish Fillet

Nothing really much to say for this humble crispy fried fish fillet, the cooking direction is very straightforward. It doesn’t involve any meticulous order, it’s a simple as getting the fish fillet ready for coating and seasoning then shallow pan frying it til crispy....