Considering the HTML code below, is there any way to use only CSS to apply different style to the i
element before the text and the other i
element after the text?
<a href="#">
<i class="i i--icon"></i>
Text
<i class="i i--icon"></i>
</a>
I could apply a span
to the text and easily solve this, but I wonder if there is a way to do this without adding more HMTL code.
Thank you.