In CSS we can change the style of a child element by clicking on the parent element for example with 'a' tag
<a class='button' href='#'>Example <i class='icon'></i></a>
a.button:focus i.icon { display: none; }
or
a.button:active i.icon { display: none; }
So when i click on a.button
the i.icon
disappear
But if we have multiple element like
<a class='button1' href='#'>Example <i class='icon1'></i></a>
<a class='button2' href='#'>Example <i class='icon2'></i></a>
How we can effect the style of the a.button1
by clicking on the a.button2
?
Is it possible with CSS without using jQuery methods ?