Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset=utf-8 />
- <title>JS Bin</title>
- <!--[if IE]>
- <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
- <![endif]-->
- <style>
- body,html { width: 100%; height: 100%; margin: 0; }
- #main { width: 100%; height: 100%; background: red; position: relative; }
- #top {
- height: 100px;
- width: 100%;
- background: yellow;
- position: absolute;
- top: 0;
- left: 0;
- z-index: 2;
- }
- #bottom {
- width: 100%;
- height: 50px;
- background: #ccc;
- position: absolute;
- bottom: 0;
- left: 0;
- z-index: 2;
- }
- #middle {
- z-index: 1;
- height: 100%;
- padding-top: 100px;
- padding-bottom: 50px;
- position: absolute;
- top: 0;
- left: 0;
- background: black;
- width: 100%;
- box-sizing: border-box;
- -moz-box-sizing: border-box;
- -webkit-box-sizing: border-box;
- }
- #content_holder {
- position: relative;
- height: 100%;
- }
- #menu {
- background: aqua;
- width: 120px;
- height: 100%;
- position: absolute;
- }
- #content {
- display: inline-block;
- background: white;
- width: 100%;
- box-sizing: border-box;
- -moz-box-sizing: border-box;
- -webkit-box-sizing: border-box;
- padding-left: 120px;
- height: 100%;
- }
- </style>
- </head>
- <body>
- <div id="main">
- <div id="top"></div>
- <div id="middle">
- <div id="content_holder">
- <div id="menu">aaa</div>
- <div id="content">bbb</div>
- </div>
- </div>
- <div id="bottom"></div>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement