Skip to content

Commit 8a31768

Browse files
author
Scott Senkeresty
committed
fix(nav): Stack title and navigation vertically
User preference: title on line 1, all nav items on line 2 Changes: - flex-direction: column (vertical stacking) - align-items: center (center both title and nav) - justify-content: center on nav - 16px gap between title and nav - Adjusted padding: 20px top, 16px bottom Result: Clean centered layout with title above navigation
1 parent db5aa66 commit 8a31768

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

static/css/style.css

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ body {
2626
/* Site Header & Navigation */
2727
.site-header {
2828
background: #111;
29-
padding: 24px 0;
29+
padding: 20px 0 16px 0;
3030
margin-bottom: 0;
3131
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
3232
}
@@ -36,17 +36,17 @@ body {
3636
margin: 0 auto;
3737
padding: 0 40px;
3838
display: flex;
39-
justify-content: space-between;
39+
flex-direction: column;
4040
align-items: center;
41-
gap: 40px;
41+
gap: 16px;
4242
}
4343

4444
.site-title {
4545
margin: 0;
4646
font-size: 20px;
4747
font-weight: 600;
4848
line-height: 1.3;
49-
flex-shrink: 0;
49+
text-align: center;
5050
}
5151

5252
.site-title a {
@@ -63,8 +63,9 @@ body {
6363

6464
.main-nav {
6565
display: flex;
66-
gap: 28px;
66+
gap: 32px;
6767
align-items: center;
68+
justify-content: center;
6869
flex-wrap: wrap;
6970
}
7071

0 commit comments

Comments
 (0)