From: Dan Dascalescu Date: Tue, 14 Aug 2012 01:55:57 +0000 (-0700) Subject: Ensure images are bound within the section X-Git-Tag: 2.0.0~28^2 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=41796f33715bd1cdb8735d70152039c87c00a723;p=reveal.js.git Ensure images are bound within the section --- diff --git a/css/main.css b/css/main.css index 39c6fdb..8dba111 100644 --- a/css/main.css +++ b/css/main.css @@ -108,6 +108,12 @@ body { font-weight: normal; } +.reveal img { + /* preserve aspect ratio and scale image so it's bound within the section */ + max-width: 100%; + max-height: 100%; +} + .reveal strong, .reveal b { font-weight: bold;