I want to apply some CSS to text that I can't get marked up in spans. So for example:
<li><a href="google.com">This is marked up</a> and this is not </li>
I want to select, with either CSS (preferably) or jQuery this bit: and this is not
. Maybe there's a method of selecting the entire li then excluding a, that seems like a bypass.
The reason why I can't get it marked up is because I'm using WP and prefer to do that rather than dig into endless lines of PHP code. Thanks a lot for the help.
EDIT:
What I want to do is apply a "display: none" to that bit of text I want to select. I can't do:
li {display: none; }
because that'll take the whole thing off, even when I do
li a {display: inline; }
that's why I was looking for a method to choose only that text specifically.
And I have plenty of those on the page.