I need to style a specific word with CSS, but I'm not sure how I would be able to do this. For some reason I can't assign any ID's or Classes to the elements of a list, this is the example:
<ul class="xxx">
<li><a href="#" class="xxx"><span class="yyy">White</span></a></li>
<li><a href="#" class="xxx"><span class="yyy">Black</span></a></li>
<li><a href="#" class="xxx"><span class="yyy">Blue</span></a></li>
</ul>
For example, the word white
with color: white;
I cannot use nth-child because in a page on my website the order of the li can be different.
I was wondering if there is a way with CSS, to tell the color only of the li (or span) which contains white.
Is there anyone who knows how I could do this? Thank you!