0

CSS I can tweak, HTML I have to work with.

.first [class="tag"] {
  background-color: #ffffff;
}
<!--Entire width & height of page-->
<div class="first">
  <!--Only a portion of width & height of page-->
  <div class="second">
    <div class="tag">
    </div>
  </div>
</div>

I need to change the background color of the first class on each page containing the tag id. The CSS that I've created can only select the first child and not the grandchild as I need. Any suggestions? Prefer a CSS solution, but not necessary. Thank you, I appreciate it.

user51225
  • 1
  • 2

1 Answers1

0

I see now that there is no current CSS solution. Thanks guys.

https://css-tricks.com/parent-selectors-in-css/

user51225
  • 1
  • 2