-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcss_task2styles.css
72 lines (61 loc) · 1.05 KB
/
css_task2styles.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
.container {
display: flex;
justify-content: space-evenly;
}
.c1, .c2 {
display: flex;
flex-direction: column;
align-items: center;
}
.c1 h2, .c2 h2 {
text-align: center;
}
.c1 ul {
list-style-type: none;
margin: 0;
padding: 0;
width: 200px;
background-color: skyblue;
}
.c1 li a {
display: block;
color: #000;
padding: 8px 16px;
text-decoration: none;
}
.c1 li a.active {
background-color: orange;
color: white;
}
.c1 li a:hover:not(.active) {
background-color: #ddd;
color: white;
}
.c2 ul {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
border: 1px solid #e7e7e7;
background-color: #f3f3f3;
}
.c2 li {
float: left;
}
.c2 li:nth-last-child(n+2) {
border-right: 1px solid #888;
}
.c2 li a {
display: block;
color: #666;
text-align: center;
padding: 14px 16px;
text-decoration: none;
}
.c2 li a:hover:not(.active) {
background-color: #ddd;
}
.c2 li a.active {
color: white;
background-color: #828282;
}