diff --git a/css/styles.css b/css/styles.css index f002f68..52d77c5 100644 --- a/css/styles.css +++ b/css/styles.css @@ -20,7 +20,10 @@ body { .topnav { background-color: #333; overflow: hidden; - margin: 0px; + position: absolute; + width: 100%; + left: 0; + top: 0; } /* Style the links inside the navigation bar */ @@ -108,7 +111,9 @@ 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) { - .topnav.responsive {position: relative;} + .topnav.responsive { + position: relative; + } .topnav.responsive a.icon { position: absolute; right: 0;