Skip to content

Commit a6a5148

Browse files
authored
Update nav.css
1 parent fe3bb0b commit a6a5148

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

assets/css/nav.css

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
position: fixed;
66
z-index: 999;
77
width: 100%;
8-
top: 3; /* Aligns the navigation bar to the top */
8+
top: 0; /* Aligns the navigation bar to the very top */
99
display: flex;
1010
align-items: center;
1111
justify-content: space-between;
12-
padding: 0 10px;
12+
padding: 10px;
1313
box-sizing: border-box;
1414
}
1515

@@ -37,10 +37,11 @@
3737

3838
/* Hamburger icon for mobile */
3939
.topnav a.icon {
40-
display: none; /* Hidden by default */
40+
display: none; /* Hidden by default on desktop */
4141
color: #808080;
4242
font-size: 24px;
4343
padding: 10px;
44+
cursor: pointer;
4445
}
4546

4647
/* Image logo styling */
@@ -59,14 +60,14 @@
5960
}
6061

6162
.topnav #myLinks {
62-
display: none; /* Hidden by default */
63+
display: none; /* Hidden by default on mobile */
6364
flex-direction: column; /* Stacks links vertically */
6465
width: 100%; /* Full width for mobile */
6566
background-color: #ffffff; /* White background for dropdown */
6667
}
6768

6869
.topnav a.icon {
69-
display: block; /* Shows the hamburger icon */
70+
display: block; /* Shows the hamburger icon on mobile */
7071
position: absolute;
7172
right: 10px;
7273
top: 10px;

0 commit comments

Comments
 (0)