About this set
Three page layouts for a frequently asked questions section, each built from the same bordered accordion cards. The centred column puts a heading and a one-line introduction above a single 600px column, the usual choice for a landing page or pricing page. Two columns splits the questions into a pair of accordions on a CSS grid with auto-fit and a 270px minimum, so they sit side by side on wide screens and stack into one column on phones without a media query. Grouped by category adds small uppercase headings such as Licensing and Technical above separate accordions, for support pages with many questions. The plain CSS and Tailwind versions use native details and summary elements, which in Chromium browsers also lets find-in-page open a closed answer that contains a match. The Bootstrap version uses .accordion with the Collapse plugin; each question is a button inside a heading element, which gives screen reader users a list of questions to jump between. Panels open independently, so readers can compare two answers.
What’s included
- Three layouts: centred column with heading, two columns, grouped by category
- Two-column grid stacks on narrow screens without a media query
- Category headings and introduction text darkened to meet 4.5:1
- Native details and summary in plain CSS and Tailwind; Bootstrap .accordion with headings
- Panels open independently
Accessibility
Questions are summary elements, or buttons with aria-expanded and aria-controls inside h3 and h4 headings in the Bootstrap version. The section heading is a real h2 and the category titles are h3 elements. Tab reaches each question, Enter or Space opens it, focus shows a 2px blue outline, and the chevron transition is removed under prefers-reduced-motion.
Customise it
Change the --acc-* properties on .acc for colours, and the max-width on .faq-centre or the 270px minimum in .faq-cols for layout. Bootstrap uses the --bs-accordion-* variables on .acc; in Tailwind edit the colour classes and the grid-cols-[repeat(auto-fit,minmax(270px,1fr))] class.






