HTML CSS examples for CSS Layout:Absolute Position
Layout Absolute positioned divs next to each other
<html> <head> <style type="text/css"> #container {<!--from w ww . j ava2 s .c o m--> position: relative; width: 200px; height: 200px; border: 1px solid red; } .icon { position: absolute; bottom: 0; left: 0; border: 1px solid green; } .icon:last-child { left: 200px; border: 1px solid green; } </style> </head> <body> <div id="container"> <div class="icon"> div </div> <div class="icon"> div </div> </div> </body> </html>