HTML CSS examples for CSS Layout:Relative Position
Css position: relative; stick to bottom
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> </head> <!--from ww w .j a v a2 s .c o m--> <body> <div style="height:500px;width:500px;background-color:blue;"></div> <div style="height:500px;width:500px;background-color:red;"></div> <div style="height:500px;width:500px;background-color:green;padding-top:20px;"> <p>Lorem ipsum dolor sit am</p> </div> </body> </html>