-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathonlinecourse.css
84 lines (75 loc) Β· 1.39 KB
/
onlinecourse.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
73
74
75
76
77
78
79
80
81
82
83
84
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
height: 100vh;
background-color: rgb(139, 62, 85);
font-family: "Poppins", sans-serif;
}
a,
button {
font-family: "Poppins", sans-serif;
}
.dropdown {
height: 10vh;
width: 60%;
margin: auto;
display: flex;
justify-content: space-around;
align-items: center;
}
.programming,
.comeptitive {
position:relative;
}
.programming ul,
.comeptitive ul {
margin-top: 10px;
position: absolute;
display: flex;
justify-content: space-around;
flex-direction: column;
align-items: center;
width: 200px;
height: 200px;
background: white;
left: 0px;
list-style: none;
border-radius: 5px;
opacity: 0;
transform: translateY(-10px);
transition: all 0.4s ease;
}
.programming li,
.comeptitive li {
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
}
.programming li:hover,
.comeptitive li:hover {
background-color: rgb(197, 173, 181);
}
.programming a,
.comeptitive a {
color: black;
text-decoration: none;
}
.dropdown button {
background: none;
text-decoration: none;
border: none;
color: white;
font-size: 18px;
cursor: pointer;
}
.programming button:focus + ul,
.comeptitive button:focus + ul {
opacity: 1;
pointer-events: all;
transform: translateY(0px);
}