Skip to content

Commit 81e012c

Browse files
committed
fix the navbar
1 parent dbef37b commit 81e012c

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/styles.css

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ nav .container {
5252
nav ul {
5353
list-style: none;
5454
display: flex;
55+
flex-wrap: wrap;
56+
justify-content: center;
5557
}
5658

5759
nav ul li {
@@ -70,6 +72,18 @@ nav ul li a:hover {
7072
color: #2a5298;
7173
}
7274

75+
/* Mobile navigation styling */
76+
@media (max-width: 600px) {
77+
nav ul {
78+
flex-direction: column;
79+
align-items: center;
80+
}
81+
82+
nav ul li {
83+
margin: 5px 0;
84+
}
85+
}
86+
7387
/* Main content styling */
7488
main {
7589
padding: 40px 0;

0 commit comments

Comments
 (0)