Skip to content

Instantly share code, notes, and snippets.

@Murmurianez
Forked from anonymous/jsbin.eKacunu.css
Created January 17, 2014 11:14
Show Gist options
  • Save Murmurianez/8471779 to your computer and use it in GitHub Desktop.
Save Murmurianez/8471779 to your computer and use it in GitHub Desktop.
Трёхколоночная, трёхстрочная таблица под размер окна.
html, body{
height: 100%;
margin: 0;
}
.table{
height: 100%;
position: relative;
background: green;
margin-bottom: -65px;
overflow: hidden;
}
.header{
position: relative;
}
.header-left{
position: absolute;
float: left;
width: 32px;
height: 64px;
background: yellow;
border-bottom: 1px solid #888888;
}
.header-center{
position: absolute;
height: 64px;
background: #345345;
left: 32px;
right: 32px;
border-bottom: 1px solid #888888;
}
.header-right{
position: absolute;
width: 32px;
height: 64px;
right: 0;
background: yellow;
border-bottom: 1px solid #888888;
}
.content{
position: relative;
top: 65px;
/* bottom: -65px; */
height: 100%
}
.content-left{
position: absolute;
width: 32px;
top: 0;
bottom: 100px;
background: yellow;
}
.content-center{
position: absolute;
top: 0;
bottom: 100px;
background: magenta;
left: 32px;
right: 32px;
}
.content-right{
position: absolute;
width: 32px;
top: 0;
bottom: 100px;
right: 0;
background: yellow;
}
.footer{
position: relative;
height: 32px;
background: cyan;
top: -32px;
bottom: 0;
}
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
<div class="table">
<div class="header">
<div class="header-left">asdf</div>
<div class="header-center">asdf</div>
<div class="header-right">asdf</div>
</div>
<div class="content">
<div class="content-left">sdg</div>
<div class="content-center">sdf</div>
<div class="content-right">sdfg</div>
</div>
<div class="footer"></div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment