Skip to content

Commit 7857e75

Browse files
committed
Ensure that menu stays centered even on mobile
1 parent 1e617a8 commit 7857e75

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

static/css/layout.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ nav {
7575
display: flex;
7676
flex-wrap: wrap;
7777
list-style: none;
78+
margin: 0; /* reset default ul margin to avoid right-shift */
79+
padding: 0; /* reset default ul padding to truly center items */
80+
margin-block: 0.75rem; /* restore comfortable top/bottom spacing */
7881
gap: 1rem;
7982
}
8083

0 commit comments

Comments
 (0)