How do I nest the 'Featured'
text inside the a
tag, given the span
, the text, and the other span
are siblings?
li
a href="#" class="selected"
span class="icon-before"
Featured
span class="icon-after"
li
a href="#" class="selected"
span class="icon-before"
| Featured
span class="icon-after"
Gives:
<li><a class="selected" href="#"><span class="icon-before"></span>Featured<span class="icon-after"></span></a></li>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With