diff --git a/resources/css/default.scss b/resources/css/default.scss
index 964281d4a2722291d0363d74bf7911dffbd9f02d..28cedacc117a423741d36621695f19b723f1fa67 100644
--- a/resources/css/default.scss
+++ b/resources/css/default.scss
@@ -427,6 +427,10 @@ CONTENT
 #layout {
   right: 0;
   padding-right: 0;
+  min-height: 100%;
+
+  /* negative margin = footer height + padding-top + padding-bottom */
+  margin: 0 auto -6rem auto;
 }
 
 #content {
@@ -502,10 +506,6 @@ pre#xmlmetadata {
 /* ***********************************************************
 FOOTER
 ************************************************************ */
-#layout {
-  min-height: 100%;
-  margin: 0 auto -6rem auto; /*negative margin = footer height + padding-top + padding-bottom*/
-}
 
 #bottom, #push {
   height: 6rem;