-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path2.html
More file actions
100 lines (89 loc) · 2.7 KB
/
2.html
File metadata and controls
100 lines (89 loc) · 2.7 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
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>FAQ Section</title>
<link rel="stylesheet" href="styles.css">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Arial, sans-serif;
background-color: #f5f5f5;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
.faq-container {
background-color: #fff;
width: 60%;
padding: 20px;
border-radius: 8px;
box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
}
.faq-container h2 {
text-align: left;
margin-bottom: 20px;
font-size: 24px;
}
.faq-item {
margin-bottom: 15px;
}
.faq-question {
font-size: 18px;
padding: 15px;
background-color: #f1f1f1;
border-left: 5px solid #ff7a00;
cursor: pointer;
transition: background-color 0.3s;
}
.faq-question:hover {
background-color: #f7f7f7;
}
.faq-answer {
display: none;
font-size: 16px;
padding: 15px;
background-color: #fafafa;
border-left: 5px solid #ff7a00;
border-top: 1px solid #e6e6e6;
}
</style>
</head>
<body>
<div class="faq-container">
<h2>Frequently Asked Questions</h2>
<div class="faq-item">
<div class="faq-question" onclick="toggleAnswer(this)">Do I get discounts for the services?</div>
<div class="faq-answer">We offer irresistible packages that include several core services.</div>
</div>
<div class="faq-item">
<div class="faq-question" onclick="toggleAnswer(this)">Do you have a refund policy?</div>
<div class="faq-answer">Our refund policy depends on the type of service purchased. Please contact support for more details.</div>
</div>
<div class="faq-item">
<div class="faq-question" onclick="toggleAnswer(this)">I have privacy concerns about my data. Is your network secure?</div>
<div class="faq-answer">Yes, our network uses industry-standard encryption and security measures to protect your data.</div>
</div>
<div class="faq-item">
<div class="faq-question" onclick="toggleAnswer(this)">What if I have a question midway?</div>
<div class="faq-answer">You can reach out to our support team at any time during your service period.</div>
</div>
</div>
<script>
function toggleAnswer(element) {
const answer = element.nextElementSibling;
if (answer.style.display === "block") {
answer.style.display = "none";
} else {
answer.style.display = "block";
}
}
</script>
</body>
</html>