浏览代码

Ensure images are bound within the section

Dan Dascalescu 12 年之前
父节点
当前提交
41796f3371
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      css/main.css

+ 6 - 0
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;