Currently, I am utilizing a font icon from Icomoon to include an icon in the :before
element of an <a>
. The functionality is smooth, but the issue arises with the text-decoration: underline
, which only applies to the icon and text within the anchor tag. This leaves a non-underlined gap between them.
Is there a way to extend the underline to cover both the <a>
tag as well as its pseudo elements?