title: Align text to the bottom of a div
body: <p>I tried to align my text to the bottom of a div from other posts and answers in Stack Overflow I learned to handle this with different CSS properties. But I can't get it done. Basically my HTML code is like this:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div style='height:200px; float:left; border:1px solid #ff0000; position:relative;'&gt;
    &lt;span style='position:absolute; bottom:0px;'&gt;A Text&lt;/span&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>The effect is that in FF I just get vertical line (the div in a collapsed way) and the text is written next to it. How can I prevent the <code>div</code> collapsing but having the width fitting to the text?</p>