Skip to content

Instantly share code, notes, and snippets.

Created August 7, 2012 10:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/3284171 to your computer and use it in GitHub Desktop.
Save anonymous/3284171 to your computer and use it in GitHub Desktop.
Untitled
* { padding: 0; margin: 0; }
.header {
height: 60px;
background: grey;
}
.page {
position: absolute;
top: 60px;
bottom: 0;
left: 0; right: 0;
}
.sidebar {
position: absolute;
width: 100px;
left: 0;
top: 0;
bottom: 0;
background: lightgrey;
}
.content {
position: absolute;
left: 100px;
right: 0;
top: 0;
bottom: 0;
}
.content-header {
height: 40px;
background: black;
}
.content-footer {
height: 40px;
background: darkgrey;
position: absolute;
bottom: 0;
left: 0;
right: 0;
}
.actual-content {
position: absolute;
top: 40px;
bottom: 40px;
background: #eee;
left: 0;
right: 0;
}
<div class="header"></div>
<div class="page">
<div class="sidebar"></div>
<div class="content">
<div class="content-header"></div>
<div class="actual-content"></div>
<div class="content-footer"></div>
</div>
</div>
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment