Skip to content

Commit 7bb9355

Browse files
authored
Update nav.css
1 parent 7421f04 commit 7bb9355

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

assets/css/nav.css

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
flex-direction: column; /* Stacks items vertically */
5959
align-items: flex-start; /* Aligns items to the left */
6060
background-color: #ffffff; /* Sets white background for the bar */
61+
padding: 15px 20px;/* Increased padding for a thicker bar */
6162
}
6263

6364
.topnav #myLinks {
@@ -69,10 +70,12 @@
6970

7071
.topnav a.icon {
7172
display: block; /* Shows the hamburger icon on mobile */
72-
position: absolute;
73-
right: 10px;
74-
top: 10px;
75-
color: #808080; /* Grey color for the icon */
73+
font-size: 24px;
74+
color: #808080;
75+
padding: 10px;
76+
cursor: pointer;
77+
margin-left: auto; /* Pushes the icon to the right */
78+
order: 1; /* Ensures the icon appears last in the flex container */
7679
}
7780

7881
.topnav a.normal {

0 commit comments

Comments
 (0)