Skip to content

Instantly share code, notes, and snippets.

@timmarinin
Created December 16, 2014 13:56
Show Gist options
  • Save timmarinin/1e6af9642600d67bca63 to your computer and use it in GitHub Desktop.
Save timmarinin/1e6af9642600d67bca63 to your computer and use it in GitHub Desktop.
Untitled
.wrapper {
border: 1px solid #111;
white-space: nowrap;
height: 700px;
width: 960px;
}
.left {width: 270px; background: grey; height: 100%;}
.right { width: 690px; height: 100%; position: relative; }
.left, .right {
display: inline-block; vertical-align: top;
white-space: normal;
}
.header {height: 40px; position: absolute; background: cyan; width: 100%;}
.content {height: 100%; margin: 40px 0 60px 0; overflow: hidden; }
.content-inner { height: 100%; overflow-y: scroll;}
.footer { height: 60px; background: blue; position: absolute; bottom: 0; width: 100%;}
</div><div class="wrapper"><div class="left">qwe</div><div class="right"><div class="header">header</div><div class="content"><div class="content-inner"><img src="//placehold.it/100x4000"></div><div class="footer">footer</div></div>
// alert('Hello world!');
{"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment