title: Make a div a appear and stay after parent div has been clicked on using CSS
body: <p>I would like a div (currently <code>display:hidden;</code>) to appear after the parent div has been clicked on, and stay there using CSS.</p>
  
  <p>I have currently made it appear when "clicked on" with <code>:active</code>, but as soon as I let go of the mouse's button the div disappears. </p>
  
  <p>How can i Make the Div stay in place after it's been clicked on?</p>
  
  <p>I have tried with <code>:visited</code> and <code>:focus</code> with no luck, any suggestions?</p>
  
  <p>I am new at this so pretty sure I am making a mistake somewhere here. It would be even better if the div went away if clicked on parent div once more.</p>
  
  <p>I would really appreciate your help.
  Thank you.</p>
  
  <pre><code>&lt;html  xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head&gt;
  &lt;style type="text/css"&gt;
  
  .container .l-col, .r-col {
  display: none;
  }
  
  .container {
  cursor: pointer;
  }
  
  .container:active .l-col {
  display: block;
  clear: left;
  float: left;
  width: 50%;
  height: 50%;
  }
  
  .container:active .r-col {
  display: block;
  float: right;
  width: 50%;
  height: 50%;
  }
  
  &lt;/style&gt;
  
  
  &lt;/head&gt;
  &lt;body&gt;
  &lt;div id="portfolio" class="container"&gt;
  &lt;h2&gt;Parent Element&lt;/h2&gt;
  &lt;div class="l-col"&gt;
  &lt;h3&gt;Left Col&lt;/h3&gt;
  &lt;p&gt;Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.&lt;/p&gt;
  &lt;/div&gt;
  &lt;div class="r-col"&gt;
  &lt;h3&gt;Right Col&lt;/h3&gt;
  &lt;p&gt;Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.&lt;/p&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>