I've been grappling with a CSS issue. I'm attempting to ensure that my accordion containers within my layout all have the same height as the tallest item on their respective rows. This would create a sleek and responsive layout where all items are uniform in height and width:
Currently, however, the heights of my accordions are inconsistent.
Here's a quick visual representation of my dilemma:
https://i.sstatic.net/ELSud.png
Each accordion consists of an icon, title text, and subtitle text.
The current problems include:
- Varied character lengths for titles and subtitles result in some containers being larger or smaller than others. The icons exacerbate this issue by further pushing the text around.
I have created a demo showcasing my problem in the sandbox below: https://codesandbox.io/s/fancy-leaf-nz9x0?file=/src/index.js
Ideally, the icon, text, and subtitle elements would align horizontally within each accordion item.
Any suggestions on how to address this using CSS?