Эх сурвалжийг харах

Merge pull request #115 from dandv/patch-5

Ensure images are bound within the section
Hakim El Hattab 12 жил өмнө
parent
commit
d0e6e95781
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;