summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon <vesspa0330@gmail.com>2025-10-06 22:56:34 -0400
committerSimon <vesspa0330@gmail.com>2025-10-06 22:56:34 -0400
commitd74a2bf1cb5899a1c26cf6bd7bd522fdc38eda14 (patch)
treeb38de360d2fae8560ca47a30476564cd0ca1bf0e
parent658728ab21e84a97c4bd63d83b6fbb8bf2992d1b (diff)
centered faq
-rw-r--r--css/style.css4
-rw-r--r--index.html18
2 files changed, 21 insertions, 1 deletions
diff --git a/css/style.css b/css/style.css
index 2ff2011..1e0e264 100644
--- a/css/style.css
+++ b/css/style.css
@@ -75,6 +75,10 @@ main {
}
section {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+
max-width: 60%;
margin-top: 5rem;
padding: 1rem 1rem;
diff --git a/index.html b/index.html
index a587c3b..d127639 100644
--- a/index.html
+++ b/index.html
@@ -114,15 +114,31 @@
<section id="FAQ">
<h1 style="margin-bottom: 2rem">FAQ</h1>
+
<div class="dropdown">
<div class="dropdown-header" onclick="toggleDropdown(this)">
<span>HEADER</span>
<span class="dropdown-arrow">▼</span>
</div>
<div class="dropdown-content">
- <div class="dropdown-body">BODY TEXT BIIIITCH!!!! 😝</div>
+ <div class="dropdown-body">
+ this is where we answer the question in the header
+ </div>
</div>
</div>
+
+ <div class="dropdown">
+ <div class="dropdown-header" onclick="toggleDropdown(this)">
+ <span>HEADER</span>
+ <span class="dropdown-arrow">▼</span>
+ </div>
+ <div class="dropdown-content">
+ <div class="dropdown-body">
+ this is where we answer the question in the header
+ </div>
+ </div>
+ </div>
+
</section>
</main>