A Div can be positioned relative to its parent

Position an element to the right of the page.

<!DOCTYPE html> <html> <head> <style> html{ height:100%; } body{ height:100%; background:solid green; } div.blahdiv { border-color:#0000ff; border-style:solid; border-width:1px; height:50%; width:50%; position:absolute; right:0; } </style> </head> <body> <div class="blahdiv">Blah blah blah</div> </body> </html>

Position a div at the bottom right of the page

<!DOCTYPE html> <html> <head> <style> html{ height:100%; padd } body{ height:100%; background:solid green; } div.blahdiv { border-color:#0000ff; border-style:solid; border-width:1px; height:50%; width:50%; position:absolute; right:0; bottom:0; } </style> </head> <body> <div class="blahdiv">Blah blah blah</div> </body> </html>