title: align two icons underneath each other using css
body: <p>I have two icons that I want to align underneath each other, one at the top of the div and the other at the bottom of the div.</p>
  
  <p>Here is an image of what I am trying to achieve - so the lightbulb icon is aligned at the top and the circle/cross is aligned to the bottom, one underneath another:</p>
  
  <p><a href="https://i.stack.imgur.com/3sWuc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3sWuc.png" alt="enter image description here"></a></p>
  
  <p>I have tried to get this working, but each attempt fails.</p>
  
  <p>Here is an image of what I currently have:</p>
  
  <p><a href="https://i.stack.imgur.com/I2knT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/I2knT.png" alt="enter image description here"></a></p>
  
  <p>Here is my HTML code:</p>
  
  <pre><code>&lt;div class="controls {{ control_classes }}"&gt;
      &lt;span id="row_{{ field.auto_id }}"&gt;{{ field }}&lt;/span&gt;
      &lt;span id="row_icons_{{ field.auto_id }}" style="width: 20px;"&gt;
          &lt;i id="id_icon_{{ field.auto_id }}" class="fa fa-lightbulb-o blue_color icon_size26 verticalAlignTop"&gt;&lt;/i&gt;
          &lt;i id="id_icon_reset_{{ field.auto_id }}" class="fa fa-ban blue_color icon_size20 verticalAlignBottom" rel="tooltip" html="true" data-placement="top" title="{% trans 'Clear' %}"&gt;&lt;/i&gt;
      &lt;/span&gt;
      &lt;span id="row_split_{{ field.auto_id }}" class="textAreaSplitContainer"&gt;&lt;/span&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Here is my CSS code:</p>
  
  <pre><code>.form-horizontal .controls {
      margin-left: 165px;
  }
  
  .verticalAlignTop {
      vertical-align: top;
  }
  
  .verticalAlignBottom {
      vertical-align: bottom;
  }
  
  .textAreaSplitContainer {
      background-color: #f6f6f6;
      border: 1px solid #d9d9d9;
      display: inline-block;
      height: 200px;
      max-height: 600px;
      max-width: 45%;
      min-height: 100px;
      min-width: 45%;
      overflow: scroll;
      overflow-x: hidden;
      padding: 10px;
      resize: none;  /* container is resized by resizing the textarea */
      vertical-align: top;
  }
  </code></pre>