diff --git a/css/main.css b/css/main.css
index 691f47b34ea220b0431f4242c5fbff1693b956ae..2a79a61c3042c9da36f58f8cb1198e79fef5092b 100644
--- a/css/main.css
+++ b/css/main.css
@@ -212,7 +212,8 @@ body {
 
 .reveal code {
 	font-family: monospace;
-	overflow-x: auto;
+	overflow: auto;
+	max-height: 400px;
 }
 
 .reveal table th,