diff --git a/res/index/script.js b/res/index/script.js
index 907ea0e..924b97c 100644
--- a/res/index/script.js
+++ b/res/index/script.js
@@ -64,13 +64,13 @@ function set_login_uname(uname)
     document.getElementById("login_indicator").style.visibility = "visible";
     document.getElementById("login_indicator_text").innerText += " " + uname;
 
-    document.getElementById("login_buttons").style.visibility = "hidden";
-    document.getElementById("logout_button").style.visibility = "visible";
+    document.getElementById("login_buttons").style.display = "none";
+    document.getElementById("logout_button").style.display = "inline";
 }
 
 function logout()
 {
-    document.getElementById("login_buttons").style.visibility = "visible";
-    document.getElementById("logout_button").style.visibility = "hidden";
-    document.getElementById("login_indicator").style.visibility = "hidden";
+    document.getElementById("login_buttons").style.display = "inline";
+    document.getElementById("logout_button").style.display = "none";
+    document.getElementById("login_indicator").style.display = "none";
 }
\ No newline at end of file
diff --git a/res/index/style.css b/res/index/style.css
index 0d04a80..9a6fad3 100644
--- a/res/index/style.css
+++ b/res/index/style.css
@@ -103,7 +103,7 @@ body
     padding-left: 2vh;
 }
 
-#login_buttons
+#login_buttons, #logout_button
 {
     margin-top: 5vh;
 }
@@ -115,9 +115,7 @@ body
 
 #logout_button
 {
-    visibility: hidden;
-    position: absolute;
-    margin-top: -8.05vh;
+    display: none;
 }
 
 #login_indicator