From 3a14e8e860cecbf3c308f25568853dd70e46c891 Mon Sep 17 00:00:00 2001 From: Jan Philipp Timme Date: Wed, 11 Sep 2013 15:41:52 +0200 Subject: [PATCH] [TASK] Move wallpaper to a single, fix-positioned div. --- index.html | 2 +- style/main.css | 11 ++++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index 99329f8..913cd5a 100644 --- a/index.html +++ b/index.html @@ -13,10 +13,10 @@ +
-
  1. Willkommen zum Dashboard-Test!
  2. diff --git a/style/main.css b/style/main.css index 320d3ca..5562fd4 100644 --- a/style/main.css +++ b/style/main.css @@ -92,10 +92,15 @@ h5 { font-size: 11pt; } color: hsla(0, 0%, 5%, 1); } -#wrap-all { - overflow: auto; /* without this, the background gets messed up when scrolling down on long pages. */ - height: 100%; +#wallpaper { + position: fixed; + top: 0px; + left: 0px; + z-index: -999; min-height: 100%; + height: 100%; + min-width: 100%; + width: 100%; background-color: hsla(0, 0%, 50%, 1); /* epic background image or something like that */ background: url('img/bkg01.jpg');