From 2a8f7426f3bee3be174cd68791f5c8f703198b91 Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Mon, 19 Aug 2013 23:50:18 -0400 Subject: [PATCH] add docs about stretch class --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index 680622e6..7c7f3428 100644 --- a/README.md +++ b/README.md @@ -425,6 +425,21 @@ Add `data-autoplay` to your media element if you want it to automatically start ``` +### Stretching elements +Sometimes it's desirable to have an element, like an image or video, stretch to consume as much space as possible within a given slide. This can be done by adding the ```.stretch``` class to an element as seen below. + +```html +
+

This video will use up the remaining space on the slide

+ +
+``` + +Limitations: +- Only direct decendents of a slide section can be stretched +- Only one descendent per slide section can be stretched + + ## PDF Export Presentations can be exported to PDF via a special print stylesheet. This feature requires that you use [Google Chrome](http://google.com/chrome).