Skip to content

Instantly share code, notes, and snippets.

@fenric
Last active March 10, 2017 05:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fenric/d4f5023100701acf2e2660020011e3ac to your computer and use it in GitHub Desktop.
Save fenric/d4f5023100701acf2e2660020011e3ac to your computer and use it in GitHub Desktop.
var column = 1, gridSize = 12, dump = '';
for (; column <= gridSize; column++)
{
dump += "\n.grid .column-" + column + " {\n\twidth: " + parseFloat(column / gridSize * 100).toFixed(5) + "%;\n}";
}
console.log(dump);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment