Skip to content

Commit

Permalink
Fix navbar to the top of the page
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos-n21 committed Nov 6, 2024
1 parent 9831cca commit 025320c
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

body {
font-family: var(--primary-font);
padding-top: 57.15px; /* pushes the top of the header down under fixed navbar */
}

h1,
Expand Down
2 changes: 1 addition & 1 deletion booking.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<body class="d-flex flex-column min-vh-100">

<!-- Navigation -->
<nav id="navbar" class="navbar navbar-expand-lg" data-bs-theme="dark">
<nav id="navbar" class="navbar navbar-expand-lg fixed-top" data-bs-theme="dark">
<div class="container">
<a class="navbar-brand" href="index.html">
<img src="assets/images/logo-sm-white.png" alt="Baordwalk Games logo" class="logo">
Expand Down
2 changes: 1 addition & 1 deletion game-library.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<body class="d-flex flex-column min-vh-100">

<!-- Navigation -->
<nav id="navbar" class="navbar navbar-expand-lg" data-bs-theme="dark">
<nav id="navbar" class="navbar navbar-expand-lg fixed-top" data-bs-theme="dark">
<div class="container">
<a class="navbar-brand" href="index.html">
<img src="assets/images/logo-sm-white.png" alt="Baordwalk Games logo" class="logo">
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

<body class="d-flex flex-column min-vh-100">
<!-- Navigation -->
<nav id="navbar" class="navbar navbar-expand-lg" data-bs-theme="dark">
<nav id="navbar" class="navbar navbar-expand-lg fixed-top" data-bs-theme="dark">
<div class="container">
<a class="navbar-brand" href="index.html">
<img src="assets/images/logo-sm-white.png" alt="Boardwalk Games logo" class="logo">
Expand Down
2 changes: 1 addition & 1 deletion success.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

<body class="d-flex flex-column min-vh-100">
<!-- Navigation -->
<nav id="navbar" class="navbar navbar-expand-lg" data-bs-theme="dark">
<nav id="navbar" class="navbar navbar-expand-lg fixed-top" data-bs-theme="dark">
<div class="container">
<a class="navbar-brand" href="index.html">
<img class="logo" src="assets/images/logo-sm-white.png" alt="Boardwalk Games Logo">
Expand Down

0 comments on commit 025320c

Please sign in to comment.