get value of sibling above

Hey, if i have a structure like so:
<p class="a">...</p>
<p class="b">...</p>

.a {
  color: blue;
}

in terms of the p tag with the class of
b
, would it be possible to get the value from the color property from the sibling above it so i can utilize that within the styles of
b
? Thanks in advance.
Was this page helpful?