title: CSS : vertical align text at top of div
body: <p>How to align the <code>&lt;span&gt;</code> text at top of the <code>&lt;div&gt;</code> if <code>float:right</code> is applied to the <code>&lt;span&gt;</code>.</p>
  
  <p>Here is my code:</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-css lang-css prettyprint-override"><code>span {
    float: right;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div&gt;Lorem ipsum dolor sit amet,
    &lt;br&gt;consectetuer adipiscing elit,
    &lt;br&gt; sed diam nonummy nibh dolore
    &lt;span&gt;Align me&lt;/span&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>I tried <code>vertical-align:text-top</code> but its not working.
  I can't use negative margin and can't even make any changes to HTML.</p>