Skip to content

Instantly share code, notes, and snippets.

@tastywheat
Last active June 17, 2016 20:30
Show Gist options
  • Save tastywheat/9455b5a43cb4539bd30c6a2950925913 to your computer and use it in GitHub Desktop.
Save tastywheat/9455b5a43cb4539bd30c6a2950925913 to your computer and use it in GitHub Desktop.
fixed-fluid columns
<!DOCTYPE html>
<html>
<head>
<title></title>
<style>
#sidebar {
width:200px;
float:right;
background-color: green;
}
#content {
width:100%;
float:right;
padding-left: 200px;
margin-left:-200px;
background-color: #8e8e8e;
}
</style>
</head>
<body>
<div id="content"> <p>Main content in here</p> </div>
<div id="sidebar"> <p>I’m the Sidebar! </p> </div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment