title: How to make show/hide div with a toggle using CSS?
body: <p>I created a menu div that would show/hide another div below it on mouse click. However, I need an arrow on the menu div to toggle on click. You know like how the arrow would be pointing to side, but toggles downward when the menu div is clicked and other div shows. I have the CSS code below and the HTML.</p>
  
  <p>PS: I am required to use CSS only.</p>
  
  <p>CSS:</p>
  
  <pre><code>.drop {
    cursor: pointer;
    display: block;
    background: #090;
  }
  
  .drop + input{
   display: none; /* hide the checkboxes */
  }
  
  .drop + input + div{
    display:none;
  }
  
  .drop + input:checked + div{
    display:block;
  }
  </code></pre>
  
  <p>inline:</p>
  
  <pre><code>&lt;label class="drop" for="_1"&gt;Collapse 1 &lt;/label&gt;
  
  &lt;input id="_1" type="checkbox"&gt; 
  &lt;div&gt;Content 1&lt;/div&gt;
  </code></pre>
  
  <p>Your help is appreciated!</p>