Ahmad Shadeed 9/15/2026

Better Icon and Label Alignment

Read Original

There is a common design pattern that sometimes gets missed or overlooked. It’s having a list of items, each with an icon. When the text is one line, the icon is centered, but when the text has multiple lines, the icon is still centered but looks odd. Here is an example: Throughout this article, I will show two solutions that I use based on the HTML: The icon is an HTML element (e.g., <svg> or <im

0 comments
Better Icon and Label Alignment

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

No top articles yet