I am looking to give black color to each "a" element inside of the listing class. How can I select the "a" element from the listing class in CSS to achieve this?
<ul class="listing">
<li><a href="#">Jobs</a></li>
<li><a href="#">Advertising</a></li>
<li><a href="#">Brands</li>
<li><a href="#">Small Businesses</a></li>
<li><a href="#">FAQ</a></li>
<li><a href="#">Privacy Policy</a></li>
</ul>
.listing a { color: #000; }
Though, if you've defined using pseudo classes elsewhere, you may need:
.listing a:link, .listing a:visited { color: #000; }
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