I am looking to selectively hide elements on the page, revealing only the contents of div.k1
. The page contains numerous elements. How can I achieve this using just CSS?
<div>1-this will be hidden</div>
<div class="k1">
2-this div will be shown
<p>3-this will be shown</p>
<p>4-this div will be shown</p>
<div>
5-this will be shown
<p>6-this will be shown</p>
<div>
7-this will be shown
<p>8-this will be shown</p>
</div>
</div>
</div>
<div>9-this will be hidden</div>
<div>10-this will be hidden</div>
<div>1-this will be hidden</div>
<div class="k1">
2-this div will be shown
<p>3-this will be shown</p>
<p>4-this div will be shown</p>
<div>
5-this will be shown
<p>6-this will be shown</p>
<div>
7-this will be shown
<p>8-this will be shown</p>
</div>
</div>
</div>
<div>9-this will be hidden</div>
<div>10-this will be hidden</div> 11,12,13..