I want to align two divs on the right side of their parent div, one above the other. Here's a visual representation:
div#top
|-------------------------------------||------------|
|div#parent ||div#menu |
| |---------|||float:right |
| |div#up ||| |
| | ||| |
| |---------|||------------|
| |
| |---------||
| |div#down ||
| | ||
| |---------||
|-------------------------------------|
Does anyone have any suggestions for achieving this layout using CSS? I can't use tables in this scenario as div#up is included in a Master page (ASP.NET) and div#down is added in the content section. Div#parent is flexible in width with a minimum width constraint and contains content that should not overlap with these divs, ruling out the use of position:absolute.
Another consideration: there are divs floated left and right containing menus on either side of div#parent. Adding clear:left/right to div#down when it's floated right causes it to be positioned below one of these menu divs...