-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnavbar.css
51 lines (46 loc) · 895 Bytes
/
navbar.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
body,
h1,
h2,
h3,
p,
ul {
margin: 0;
padding: 0;
}
/* Styling for the navigation bar */
nav {
background-color: #333;
padding: 10px 20px; /* Increased padding for better appearance */
position: fixed;
top: 0;
left: 0;
width: 100%;
z-index: 1000;
display: flex;
justify-content: space-between;
align-items: center;
}
#navbar {
max-width: 1200px;
margin: 0 auto;
display: flex;
justify-content: flex-end; /* Aligning items to the right */
align-items: center;
gap: 20px; /* Increased gap for better spacing */
}
#logo {
color: rgb(19, 200, 110);
font-size: 24px;
text-decoration: none;
margin-right: auto; /* Pushing logo to the left */
}
#navbar a {
color: #fff;
text-decoration: none;
padding: 10px 15px;
border-radius: 5px;
transition: background-color 0.3s ease;
}
#navbar a:hover {
background-color: #555;
}