Prechádzať zdrojové kódy

Ensure images are bound within the section

Dan Dascalescu 12 rokov pred
rodič
commit
41796f3371
1 zmenil súbory, kde vykonal 6 pridanie a 0 odobranie
  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;