Is there a trick to get a parent of element? I have a html structure and i cannot edit this. I cannot use javascript. So, i just have css for solution. I was looking for some way, but i only found css4 and jquery solution. I need pure css trick or solution. Thank you.
(Javascript - html changes not allowed for me)
<h1> <a id="link1"> hello </a></h1>
<h1> <a id="link2"> hello </a></h1>
<h1> <a id="link3"> hello </a></h1>
I want the "#link1" parent. i tried using "h1:first-child" but elements order never is the same.