silvercircle/github/io
A Jekyll test site with no particular purpose.

Tag: CSS - all content

2 articles in this section. Page 1 of 1

Embedding YouTube videos in Jekyll

Last modified:
475 Words
By Alex Vie in Jekyll | Tue, 10. 10 2017, 19:41
Reading time: approx. 1 minute(s)
Jekyll Logo
Jekyll Logo

A include-able fragment that allows to embed youtube videos by video ID. The video will be sized properly to the available width using CSS only. No Javascript or other dependencies needed.

This is HTML/CSS only, should work for any static site generator with an include feature similar to Jekyll’s.

jekyll css video

YouTube embedding with correct aspect and any width

Last modified:
521 Words
By alex | Thu, 31. 08 2017, 23:56
Reading time: approx. 1 minute(s)

This is a HowTo and deals with the problem of embedding YouTube videos at any desired size. The size of the video should be determined by the surrounding container. No fixed width and height values are needed.

css