My client wants every link list, that is, every list of the form
<ul>
<li>
<a href="www.google.com">Here's a link</a>
</li>
<li>
<a href="www.google.com">Here's a link</a>
</li>
<li>
<a href="www.google.com">Here's a link</a>
</li>
</ul>
to have the bullets of the list be the same color as the linked text, but every non-link list, that is, every list of the form
<ul>
<li>Here's a regular list item</li>
<li>Here's a regular list item</li>
<li>Here's a regular list item</li>
</ul>
should have its bullets and corresponding text inherit as usual.
Fiddle: http://jsfiddle.net/0kkc2rz4/
I am constrained by not being able to add classes into the HTML
, so something like
<ul class='link-list'>
<li>
<a href="www.google.com">Here's a link</a>
</li>
<li>
<a href="www.google.com">Here's a link</a>
</li>
<li>
<a href="www.google.com">Here's a link</a>
</li>
</ul>
ul.link-list li { color: #004E98; }
is out of the question, although I realize that's the obviously best way to do it if I was coding the site from scratch. I can add JS, but would prefer not to.