HTML CSS examples for CSS Layout:Row
3 row div layout
<html> <head> <style type="text/css"> .header {<!--from w w w.j a v a 2s .co m--> position: absolute; top: 0px; height: 50px; width: 100%; background: #f00; } .footer { position: absolute; bottom: 0; height: 50px; width: 100%; background: #00f; } .cssBody { position: absolute; top: 50px; bottom: 50px; width: 100%; background: #0f0; } </style> </head> <body> <div class="header"> <p>Header</p> </div> <div class="cssBody"> <p>Hello World</p> </div> <div class="footer"> <p>Footer</p> </div> </body> </html>