Skip to content

Instantly share code, notes, and snippets.

@graygilmore
Forked from anonymous/dabblet.css
Created March 10, 2012 00:38
Show Gist options
  • Save graygilmore/2009473 to your computer and use it in GitHub Desktop.
Save graygilmore/2009473 to your computer and use it in GitHub Desktop.
Untitled
#wrapper {
width: 900px;
margin: 0 auto;
position: relative;
background: #999;
}
#content {
width: 500px;
float: right;
height: 500px;
background: blue;
}
#sidebar-wrap {
position: fixed;
top: 0;
width: 300px;
height: 600px;
background: yellow;
}
#sidebar {
position: relative;
top: 0;
height: 500px;
width: 300px;
background: red;
}
<div id="wrapper">
<div id="content"></div>
<div id="sidebar-wrap">
<div id="sidebar">
</div>
</div>
</div>
{"view":"split","seethrough":"","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment