How can I change the color and alignment of anchor tags within the third child div that is part of a set of three nested divs? These child divs are arranged side by side within a parent div with the class .logo-bckgrnd-rpt. Although I have successfully targeted the third child div, my attempts to style the anchors within it seem to be unsuccessful. Here is the code I am using:
The .logo-bckgrnd-rpt class pertains to the parent div containing the three child divs. While I have been able to target the third child div, altering the color and alignment of the anchor tags within it has proven challenging.
.logo-bckgrnd-rpt div:nth-child(3) a:link,
.logo-bckgrnd-rpt div:nth-child(3) a:visited {
color:#ec1d23;
text-align:right;
}