Skip to content

Instantly share code, notes, and snippets.

@revnode
Created May 28, 2013 18:42
Show Gist options
  • Save revnode/5665071 to your computer and use it in GitHub Desktop.
Save revnode/5665071 to your computer and use it in GitHub Desktop.
CSS Calc
/* basic calc */
.simpleBlock {
width: calc(100% - 100px);
}
/* calc in calc */
.complexBlock {
width: calc(100% - 50% / 3);
padding: 5px calc(3% - 2px);
margin-left: calc(10% + 10px);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment