FAQs Section Using HTML CSS And Vanilla JavaScript
Looking for an easy and effective way to create an FAQs or Accordion section on your website using HTML, CSS, and Vanilla JavaScript? Look no further! In this tutorial, we'll guide you step-by-step through the process of building a sleek and user-friendly FAQs section that will help you provide answers to your audience's most commonly asked questions.
Using our simple yet powerful HTML and CSS templates, you'll be able to create a responsive and visually appealing FAQs section in no time. And with the help of Vanilla JavaScript, you'll be able to add dynamic functionality such as accordion-style dropdowns that make it easy for your users to find the information they need.
Whether you're a beginner or an experienced web developer, this tutorial is perfect for anyone looking to enhance their website's user experience and make it more informative and user-friendly. So what are you waiting for? Join us today and learn how to create an amazing FAQs section using HTML, CSS, and Vanilla JavaScript!
Create A FAQs Section Using HTML CSS And Vanilla JavaScript
FAQs HTML CSS FAQ
Improved conversion rates, included copy-writer and beautiful designs
— just a few things our clients love!What is a “Credit”
Each creative/banner you download to your computer to use on your campaigns equals to 1 credit. Based on the package you select, you will have 10, 100 or an unlimited number of credits that renews every month.
What does “Web Development” mean?
Each creative/banner you download to your computer to use on your campaigns equals to 1 credit. Based on the package you select, you will have 10, 100 or an unlimited number of credits that renews every month.
What is a “User”?
Each creative/banner you download to your computer to use on your campaigns equals to 1 credit. Based on the package you select, you will have 10, 100 or an unlimited number of credits that renews every month.
Do I have to connect ad accounts to use Website?
Each creative/banner you download to your computer to use on your campaigns equals to 1 credit. Based on the package you select, you will have 10, 100 or an unlimited number of credits that renews every month.
What do you mean by frontend?
Each creative/banner you download to your computer to use on your campaigns equals to 1 credit. Based on the package you select, you will have 10, 100 or an unlimited number of credits that renews every month.
*{ margin: 0px; padding: 0px; box-sizing: border-box; font-family: poppins; } ul{ list-style: none; } a{ text-decoration: none; } /*==FAQs=============================*/ #faq{ background: #F5F5FF; padding: 84px 0px 144px 134px; display: flex; flex-direction: column; } .faq-heading{ display: flex; flex-direction: column; padding-left: 46px; margin-bottom: 24px; } .faq-heading h3{ font-weight: 700; font-size: 45.25px; line-height: 57px; color: #3B2A82; text-transform: uppercase; } .faq-heading p{ font-weight: 400; font-size: 13.175px; line-height: 20px; color: #7A719B; max-width: 461px; } .faq-content{ display: grid; grid-template-columns: 1.3fr 1fr; width: 100%; align-items: flex-start; } .faq-box{ padding: 35px; background: rgba(255, 255, 255, 0.4); border: 1px solid #FFFFFF; box-shadow: 14px 14px 60px rgba(59, 42, 130, 0.06); border-radius: 25px; display: flex; flex-direction: column; width: 100%; margin-bottom: 20px; } .faq-box:last-child{ margin-bottom: 0px; } .faq-box-question{ display: grid; grid-template-columns: 1fr 30px; justify-content: space-between; align-items: center; cursor: pointer; user-select: none; } .faq-box-question h4{ font-weight: 700; font-size: 22.625px; line-height: 31px; color: #3B2A82; } .faq-box-answer{ max-height: 0px; overflow: hidden; transition: all ease-in-out 0.5s; } .faq-box-answer p{ font-weight: 400; font-size: 13.175px; line-height: 20px; color: #7A719B; padding-top: 20px; } .faq-img{ width: 100%; overflow: hidden; border-radius: 27px 0px 0px 27px; display: flex; box-shadow: 14px 14px 60px rgba(59, 42, 130, 0.06); } .faq-box-container{ margin-right: 40px; } .faq-img img{ width: 100%; object-fit: contain; object-position: right; } .faq-box-icon{ display: block; position: relative; height: 3px; transition: background 0.2s ease-out; width: 23px; margin-left: auto; } .faq-box-icon::before, .faq-box-icon::after{ background: #382B7D; content: ''; position: absolute; height: 100%; transition: all ease-out 0.2s; width: 100%; border-radius: 3px; } .faq-box-icon::before{ top: 0px; } .faq-box-icon::after{ transform: rotate(90deg); top: 0px; } .faq-box-question.active h4{ color: #FF3067; } .faq-box-question.active .faq-box-icon::after{ transform: rotate(0deg); } @media(max-width:1200px){ #faq{ padding: 84px 0px 144px 20px; } } @media(max-width:800px){ #faq{ padding: 84px 0px 144px 20px; } .faq-content{ grid-template-columns: 1fr; } .faq-box-container{ margin-right: 0px; padding-right: 20px; } .faq-img{ margin-top: 25px; } } @media(max-width:724px){ #faq{ padding: 82px 0px 80px 20px; } .faq-img{ border-radius: 18.0651px 0px 0px 18.0651px; } .faq-heading{ padding: 0px 20px; } .faq-heading h3{ font-weight: 700; font-size: 26.2px; line-height: 33px; } .faq-box-question h4{ font-weight: 700; font-size: 19px; line-height: 26px; } .faq-box{ padding: 24px 21px; } .faq-box-icon{ width: 16px; } .faq-box-question{ grid-template-columns: 1fr 16px; } }
Comments