Skip to content

Instantly share code, notes, and snippets.

@jescalan
Created February 13, 2012 22:59
Show Gist options
  • Select an option

  • Save jescalan/1821285 to your computer and use it in GitHub Desktop.

Select an option

Save jescalan/1821285 to your computer and use it in GitHub Desktop.
split 2
// Create a fluid content area. This should be used rather than floating and setting widths
// for increased flex. They can be rearranged with responsive queries later
=split($params)
@for $i from 1 to length($params) + 1
& > *:nth-child(#{$i})
float: left
width: nth($params, $i)
// Usage
.main
+split(25% 75%)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment