Here is my HTML/CSS code, I am relatively new to this field. Please let me know if I have overlooked anything.
.dropdown-menu>li>a {
padding: 3px 5px;
}
<li>
<a id="btn-other-1" href="#">
<!–- I do not want apply css for this anchor tag because it has i inside –->
<i class="fa fa-check" aria-hidden="true"></i>
<span> Other stuff-1? </span>
</a>
</li>
<li>
<a id="btn-other-2" href="#">
<span> Other stuff-2 </span>
</a>
</li>
The issue I am facing is that the CSS code I provided applies to all anchor tags within <li>
, but I want to exclude the ones with an <i>
tag inside them.
How can I achieve this in CSS?