I have the following code
<div id="header" class="row">
<ul id="topnav">
<li>
<a href="#">a</a>
<span><a href="#">aa</a> <a href="#">ab</a></span>
</li>
<li>
<a href="#">b</a>
<span><a href="#">ba</a> <a href="#">bb</a></span>
</li>
<li style="float: right;"><a href="#">Login</a></li>
</ul>
<div id="login_container">
<form method="post" id="login_form">
<table>login form</table>
</form>
<form method="post" id="create_account_form">
<table>create account form</table>
</form>
</div>
</div>
<div id="content">
content here
</div>
The header is about 60px tall and 960px wide, centered in the browser window and sticking to the top of the viewport. When the user clicks on "Login" the #login_container reveals itself. However, I want to position it aligned right with the header row, not aligned to the right of the viewport. I can do that by not using 'position: absolute' when styling #login_container, however, then the login form gets cut-off because the containing #header div is not tall enough. In other words, I want the #login_container aligned with the right edge of #header, but laid on top of #content, if any.