Skip to content

Commit

Permalink
Move navbar inside col-md-4
Browse files Browse the repository at this point in the history
Otherwise the navbar padding overrides the col-md-4 padding
  • Loading branch information
jcoyne committed Jun 13, 2024
1 parent b193122 commit 470be6e
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions header/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -289,19 +289,21 @@
><a href="/">Website at Stanford</a></span
>
</div>
<nav
class="navbar navbar-expand col-md-4 d-flex justify-content-md-end justify-content-center"
aria-label="browse"
>
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="/item1">Item 1</a>
</li>
<li class="nav-item ml-3 ms-3">
<a class="nav-link" href="/item2">Item 2</a>
</li>
</ul>
</nav>
<div class="col-md-4">
<nav
class="navbar navbar-expand d-flex justify-content-md-end justify-content-center"
aria-label="browse"
>
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="/item1">Item 1</a>
</li>
<li class="nav-item ml-3 ms-3">
<a class="nav-link" href="/item2">Item 2</a>
</li>
</ul>
</nav>
</div>
</div>
</div>
</div>
Expand Down

0 comments on commit 470be6e

Please sign in to comment.