-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
50 lines (38 loc) · 1.53 KB
/
Copy pathstyle.css
File metadata and controls
50 lines (38 loc) · 1.53 KB
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
html {
font-family: Arial, Helvetica, sans-serif;
}
body {
margin: 0;
}
.header {
display: flex; /* elements are laid our horizontally */
justify-content: space-between; /* space between the elements */
align-items: center; /* vertically center the elements */
padding: 0px 20px; /* Adds space around the nested elements */
background-color: #333;
}
.logo__img {
display:block; /* removes the default inline spacing around the image */
width: 50px;
height: 50px;
}
.nav__list {
display: flex; /* Places items in a row or horizontal layout */
gap: 20px; /* Adds space between the navigation links */
/* Resets the default list styling */
margin: 0;
padding: 0;
list-style: none; /* Removes the default bullet points from the list */
margin: 0; /* Removes default margin */
padding: 0; /* Removes default padding */
}
.nav__link {
display:block; /* Makes the entire area of the link clickable; makes it possible to set dimensions for the link */
padding: 0 30px; /* Adds space around the text of the link; these paddings are part of the clickable area */
/* need to remove padding in .header, so links occupy the full height */
/* then it's possible to click not only on the text but also above and below it */
line-height: 60px; /* Sets the height of the line to match the height of the header, making the entire area clickable */
color: #fff;
text-decoration: none; /* Removes the underline from the links */
background-color: #444;
}