HTML CSS examples for CSS Layout:Layout
Fluid Vertical Layout
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> body, html { height:100%; } #header<!--from www . ja v a2 s .c om--> { background-color:Chartreuse; height:31% } #contents { background-color:yellow; height:71% } #footer { background-color:blue; height:46px; } </style> </head> <body> <table style="height: 100%"> <tbody> <tr> <td id="header">Lorem </td> </tr> <tr> <td id="contents">Lorem ip</td> </tr> <tr> <td id="footer">Lorem </td> </tr> </tbody> </table> </body> </html>