From a041f9c64a34eaa750acd874bdf7027b7015bc29 Mon Sep 17 00:00:00 2001 From: hakimel Date: Wed, 23 Jan 2013 15:26:22 -0500 Subject: limit video size to size of slide (closes #308) --- css/reveal.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'css/reveal.css') diff --git a/css/reveal.css b/css/reveal.css index 0680fa5..0074889 100644 --- a/css/reveal.css +++ b/css/reveal.css @@ -189,8 +189,9 @@ body { font-style: italic; } -/* Preserve aspect ratio and scale image so it's bound within the section */ +/* Ensure certain elements are never larger than the slide itself */ .reveal img, +.reveal video, .reveal iframe { max-width: 100%; max-height: 100%; -- cgit v1.2.3