I have this piece of HTML.
<div class="page-top">
<div class="page-title">
<h2></h2>
<h1></h1>
</div>
<div class="page-controls buttons">
<a href="" class="button"></a>
</div>
</div>
With two different styles for the h1
. One where I apply a padding-top
to the h1
when it's show alone. And the other style, for when the h1
is preceded by an h2
, I remove the padding-top
with .page-title h2 + h1
My question is how would you select the page-controls.buttons
, only when the h1
is preceded by the h2
. Is it possible?