0

Styling all anchor tags in a particular DIV

I've the below code. I want to apply this color(#0099FF) code to all 3 anchor tags that are descendant of a particular DIV tag. <!-- HTML CODE Start --> <div class="post-body post-content"> <a href="#">Link_1</a> <a href="#">Link_2</a> <div> <a href="#">Link_3</a> </div> </div> <!-- HTML CODE End --> Please provide css styles. Thanks!

8th May 2020, 2:22 PM
Mukesh Kaswan
Mukesh Kaswan - avatar
1 Answer
+ 1
.post-content a{ color:#0099FF; }
8th May 2020, 2:30 PM
Abhay
Abhay - avatar