HTML CSS examples for CSS Layout:Absolute Position
Align contents to bottom of div without using position:absolute
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .content {<!--from w w w . j a va 2s . c o m--> height:calc(100% - 103px); } .footerLike { border:2px solid Chartreuse; height:100px; } body, html { height:100%; width:100%; margin:0; padding:0; } </style> </head> <body> <div class="content"> Content </div> <div class="footerLike"> <img src="https://www.java2s.com/style/demo/Firefox.png" style="height:90px;position:relative;display:inline-block;"> </div> </body> </html>