Fix HTML background image size
authorChristian Weiske <cweiske@cweiske.de>
Sun, 17 May 2020 09:08:47 +0000 (11:08 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Sun, 17 May 2020 09:08:47 +0000 (11:08 +0200)
www/ouya-discover.css
www/ouya-game.css

index 26fd083..baf3104 100644 (file)
@@ -1,7 +1,11 @@
+html {
+    height: 100%;
+}
 body {
+    min-height: 100%;
     background-color: #333;
     background-image: url("bg.jpg");
-    background-size: 100vw auto;
+    background-size: cover;
     background-attachment: fixed;
     color: #CCC;
     font-family: sans;
index 5f3f2f9..22560e0 100644 (file)
@@ -1,7 +1,12 @@
+html {
+    height: 100%;
+}
 body {
+    min-height: 100%;
     background-color: #333;
     background-image: url("bg_details.jpg");
     background-size: cover;
+    background-attachment: fixed;
     color: #CCC;
     font-family: sans;
     margin: 0;