Hi
<div id="foo" class="layer">foo</div>
<div id="bar" class="layer">bar</div>Da ist wohl 'section' angebracht; @class kannst du dir dann evtl. sparen:
Stimmt.
Welches? Das erste? Das letzte? Ein beliebiges?
Das ist mir zum Glück egal, hauptsache irgendeins.
Wenn das letze:
section:target, section:last-of-type { display: block }
section:not(:target), section:target~section:last-of-type { display: none }
Den ~-Selektor vergessen ich nur zu gerne.
Ich weis nicht mal wie man den nennt xD
Vielen Dank.
~dave