From e430bdf60493eec34b0ced37839ab851b3b9c708 Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Fri, 7 Oct 2022 20:01:11 +0100 Subject: [PATCH] Changed navbar style --- css/styles.css | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/css/styles.css b/css/styles.css index 283be0e..5e0215f 100644 --- a/css/styles.css +++ b/css/styles.css @@ -22,7 +22,7 @@ body { background-color: #6b98f2; font-family: sans-serif; padding: 0px 0px 0px 0px; - margin: 0; + margin: auto; /*Changed to auto, was previously 0*/ width: 100%; } @@ -135,8 +135,8 @@ body { display: block; } - /* When the screen is less than 600 pixels wide, hide all links and replace 'Home' icon with link. Show the link that contains should open and close the topnav (.icon) */ - @media screen and (max-width: 600px) { + /* When the screen is less than 800 pixels wide, hide all links and replace 'Home' icon with link. Show the link that contains should open and close the topnav (.icon) */ + @media screen and (max-width: 800px) { .navbar a, .navbar img, .dropdown .dropbutton { display: none; } @@ -161,7 +161,7 @@ body { } /* The "responsive" class is added to the topnav with JavaScript when the user clicks on the icon. This class makes the topnav look good on small screens (display the links vertically instead of horizontally) */ - @media screen and (max-width: 600px) { + @media screen and (max-width: 800px) { .navbar.responsive {position: relative;} .navbar.responsive a.icon { position: absolute;