I am using a div with 2 elements inside, and I want my first element to be vertically aligned at the top and the second element at the bottom of the div. Div is the right side of my page and is equal to the height of my main content.
#right { float:right; width: 19%; background:#FF3300; margin-left:2px; padding-bottom: 100%; margin-bottom: -100%; } #right .top { display:block; background-color:#CCCCCC; } #right .bottom { bottom:0px; display:block; background-color:#FFCCFF; height:60px; }
HTML:
<div id="right"> <span class="top">Top element</span> <span class="bottom"><img src="images/logo_footer1.gif" width="57" height="57" align="left" class="img"> <img src="images/logo_footer2.gif" width="57" height="57" align="right" class="img"></span> </div>
I want the right div to be like this: alt text http://christianruado.comuf.com/element.png
source share