-
Notifications
You must be signed in to change notification settings - Fork 0
/
FAQ.css
50 lines (48 loc) · 844 Bytes
/
FAQ.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
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
body{
font-family: 'Poppins',sans-serif;
}
#accordion{
margin: 100px auto;
width: 600px;
}
#accordion li{
list-style: none;
width: 100%;
margin-bottom: 10px;
background: pink;
padding: 10px;
border-radius: 4px;
}
#accordion li label{
padding: 10px;
display: flex;
align-items: center;
justify-content: space-between;
font-size: 18px;
font-weight:bold;
cursor: pointer;
color: black;
}
#accordion li label span{
transform: rotate(90deg);
font-size: 19px;
color: #333;
}
#accordion label + input[type="radio"]{
display: none;
}
#accordion .content{
padding: 0 10px;
line-height: 26px;
max-height: 0;
overflow: hidden;
transition: max-height 0.5s;
}
#accordion label + input[type="radio"]:checked + .content{
max-height: 400px;
}