Let's say your HTML looks something like this:
<div class="box"> <p class="bet_time">Bet 5 days ago</p> </div>
Then using CSS you can make this text in the lower right corner like this:
.box { position:relative; } .bet_time { position:absolute; bottom:0; right:0; }
How this works is that absolutely positioned elements are always positioned relative to the first relative positioned parent element or window. As we set the position of the window relative, .bet_time positions the right edge to the right edge of the .box , and its lower edge to the lower edge of the .box
Austin Hyde Oct 18 '10 at 1:21 2010-10-18 01:21
source share