-
Notifications
You must be signed in to change notification settings - Fork 2
/
style3.css
58 lines (48 loc) · 1.07 KB
/
style3.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
52
53
54
55
56
* {
box-sizing: border-box;
}
/* styling the header */
header {
background-color: green;
padding: 30px;
text-align: center;
}
/* styling navigation */
/* instead of using float and not having control, use display flex and flex direction on a container(parent element), not the child elements */
.nav {
overflow: hidden;
background-color: rgb(255, 251, 1);
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-evenly;
padding: 5px;
}
.nav a {
text-align: center;
display: block;
color: black;
text-align: center;
padding: 14px 16px;
text-decoration: none;
}
.nav a:hover {
background-color: rgba(45, 216, 207, 0.808);
color: white;
}
/* fr stands for fraction unit,
it represents a fraction of available space in the grid container. */
.grid-container {
display: grid;
grid-template-columns: 1fr 1fr;
grid-template-rows: 1fr 1fr;
height: 100%;
}
.grid {
text-align: center;
padding: 10px;
}
#about, #blog {
background-color: black;
color: white;
}