/ Published in: CSS
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title></title> </head> <style> html, body {height: 100%} #outer {position: relative; height: 50%;} #inner {position: absolute; bottom: 10px;} #outer, #inner {border: 1px solid #ccc;} </style> <body> <div id="outer">OUTER <div id="inner">INNER </div> </div> </body> </html>