Skip to content

Instantly share code, notes, and snippets.

@chikadance
Created April 8, 2013 11:10
Show Gist options
  • Save chikadance/5335987 to your computer and use it in GitHub Desktop.
Save chikadance/5335987 to your computer and use it in GitHub Desktop.
css layout
@mixin size_col($width: auto, $height: auto, $background: #e3e3e3) {
width: $width;
height: $height;
background: $background;
}
.wrap {
min-width: 600px;
@include size_col(80%, auto, green);
margin: auto;
overflow: hidden;
h1 {
text-align: center;
}
.content {
@include size_col(70%, 600px, brown);
float: left;
}
aside {
@include size_col(30%, 600px);
float: left;
ul {
list-style: none;
padding: 0;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment