title: css to align drop down to the right
body: <p>I am using the css/javascript drop-down menu from this page:</p>
  
  <p><a href="http://javascript-array.com/scripts/simple_drop_down_menu/" rel="noreferrer">http://javascript-array.com/scripts/simple_drop_down_menu/</a></p>
  
  <p>Though I would like to have the far-right drop-down aligning to the right: when you hover "Contact" that the "Email" item etc do not go further to the right than the "Contact" box at the top, and instead are taking space from the left side if required.
  Here is a picture to help clarify:
  <img src="https://i.stack.imgur.com/9msuh.png" alt="enter image description here"></p>
  
  <p>I thought of having the far-right of a different class which I would make:</p>
  
  <pre><code>&lt;li class="alignRight"&gt;&lt;a href="#" onmouseover="mopen('m5')" onmouseout="mclosetime()"&gt;Contact&lt;/a&gt;
      &lt;div id="m5" onmouseover="mcancelclosetime()" onmouseout="mclosetime()"&gt;
      &lt;a href="#"&gt;E-mail&lt;/a&gt;
      &lt;a href="#"&gt;Submit Request Form&lt;/a&gt;
      &lt;a href="#"&gt;Call Center&lt;/a&gt;
      &lt;/div&gt;
  &lt;/li&gt;
  </code></pre>
  
  <p>with css:</p>
  
  <pre><code>.alignRight {
      float: right;
  }
  </code></pre>
  
  <p>but that does not work.</p>
  
  <p>How can I "align" the drop-down to the right?</p>