When I have a title text and an icon, I want to align the icon to the left if the title fits on a single line. However, if the title spans multiple lines, then I need to align the icon to the top.
I recently discovered a solution that involves using Javascript to append a dynamic class based on the height and line height of the title. Is there a way to achieve this alignment solely with CSS? https://i.sstatic.net/3Dywn.png