I have the following HTML:
<div class="outer">
<div class = "label">
Label
</div>
<a class = "content" href= "........">
// a lot of different divs in here
</a>
</div>
I want to add a:visited state to this link that also styles the sibling of class label
. I have found out how to style the children divs of but not sure how to style the previous sibling. I want to accomplish this with only CSS.
Current CSS: (gray out all child divs of <a>
when visited)
content:hover .childdiv1 .childdiv2 .childdiv3 {
color: gray;
}