Attempting to design an adaptive post meta for a post card.
The challenge is handling cases where the post meta contains multiple categories, requiring them to be wrapped while vertically centering the content within the li
elements (such as avatars and icons).
I experimented with applying display: inline-flex
to the .entry-meta
class to utilize the align-items: center
property. However, this caused the list items (li
) to no longer wrap neatly like when using display: inline
on li
.
1. The display: inline
approach (with no vertical centering)
This method successfully wraps all list items as intended but does not vertically center the content (avatars and icons).
...2. The display: inline-flex
strategy
Although this aligns the content vertically, the category li
elements are not wrapping correctly and break into new lines.
In summary, I aim to preserve the wrapping behavior of list items achieved with display: inline
, while also vertically centering the content inside.
P.S. Attempting to use the vertical-align: middle
property proved unfruitful :)