Skip to content

Instantly share code, notes, and snippets.

@lakshman108
Created February 2, 2013 00:03
Show Gist options
  • Select an option

  • Save lakshman108/4695069 to your computer and use it in GitHub Desktop.

Select an option

Save lakshman108/4695069 to your computer and use it in GitHub Desktop.
side-fixed two-column
/**
* side-fixed two-column
*/
body {
background: tan;
}
div#container {
width: 800px;
margin: auto;
}
div#topbar{
position: fixed;
background: black;
width: 100%;
top: 0px;
left: 0px;
text-align: center;
height: 50px;
z-index: 1;
}
div#picture {
position: fixed;
background: grey;
margin-right: 450px;
height: 250px;
width: 310px;
top: 50px;
}
div#nav {
position: fixed;
background: green;
margin-right: 450px;
height: 250px;
width: 310px;
top: 300px;
}
div#content {
position: relative;
background: pink;
display: inline;
float: right;
width: 490px;
height: 450px;
top: 50px;
}
p {
color: white;
margin: 0px
}
<body>
<div id="topbar"><p>TopBar</p></div>
<div id="container">
<div id="picture">Picture Container</div>
<div id="nav">Nav Bar</div>
<div id="content">Content</div>
</div>
</body>
// alert('Hello world!');
{"view":"separate","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