Lego2012
2/7/2017 - 1:00 PM

Hiding & Showing Content

Hiding & Showing Content

#comments:not(:target) {
  display: none;
}
#comments:target {
  display: block;
}
<a href="#comments">Show Comments</a>

<section id="comments">  
  <h3>Comments</h3>
  <!-- Comments here... -->
  <a href="#">Hide Comments</a>
</section>