/min-heighter

Algorithm for setting min-height to all text elements in one row

Primary LanguageHTMLMIT LicenseMIT

Min-heighter

JavaScript algorithm for setting min-height to all elements in one row based on the most voluminous one.

Alignment can sometimes be troubling, especially when you need to align all text elements within a flexbox, but the number of siblings isn't equal for each parent. For example, some persons have two and the other three children (h4, p and a), so you can't use flex-grow to align everything.