Skip to content

Instantly share code, notes, and snippets.

@zellwk
Created May 14, 2015 15:55
Show Gist options
  • Select an option

  • Save zellwk/aaa4fc4e6be6be7ff6ce to your computer and use it in GitHub Desktop.

Select an option

Save zellwk/aaa4fc4e6be6be7ff6ce to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
<div class="container">
<div class="flexible"></div>
<div class="fixed"></div>
</div>
// ----
// Sass (v3.3.14)
// Compass (v1.0.1)
// Susy (v2.1.3)
// ----
@import "susy";
.container {
margin-left: auto;
margin-right: auto;
max-width: 960px;
}
.container:after {
content: "";
display: table;
clear: both;
}
.flexible {
@include container;
width: calc(100% - 300px);
float: left;
background: rgba(red, 0.25);
}
.fixed {
float: left;
width: 300px;
background: rgba(green, 0.25);
}
.flexible, .fixed {
height: 100vh;
}
.container {
margin-left: auto;
margin-right: auto;
max-width: 960px;
}
.container:after {
content: "";
display: table;
clear: both;
}
.flexible {
max-width: 100%;
margin-left: auto;
margin-right: auto;
width: calc(100% - 300px);
float: left;
background: rgba(255, 0, 0, 0.25);
}
.flexible:after {
content: " ";
display: block;
clear: both;
}
.fixed {
float: left;
width: 300px;
background: rgba(0, 128, 0, 0.25);
}
.flexible, .fixed {
height: 100vh;
}
<div class="container">
<div class="flexible"></div>
<div class="fixed"></div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment