I am attempting to replicate the drop-down menu style used on Twitter. Here is an example of what I am trying to achieve:
(Click on the language option).
To accomplish this, I have implemented the following HTML:
<a href="#language">English</a>
<div class="popup" id="language">
<ul>
<li>Portuguese</li>
<li>English</li>
<li>French</li>
</ul>
</div>
Example: http://codepen.io/mdmoura/pen/upIjv.
I have two main objectives:
1 - Make sure the drop-down menus line up properly with their respective links;
2 - Allow for the option to align the drop-down menus to the left or right of their triggers.
Does anyone have any suggestions on how to accomplish this?
Thank you, Miguel