3
Taking into account the HTML code below, is there any way using only CSS to apply different style to the element i
before the text and the other element i
after the text?
<a href="#">
<i class="i i--icon"></i>
Text
<i class="i i--icon"></i>
</a>
Could apply a span
to the text and easily resolve it, but would like to know if there is a way to do this without adding more HMTL code.
Thank you.
Cool, I didn’t think it would be possible using the
:nth-child()
. Thank you @Chun!– Bruno Wego