Skip to content

Instantly share code, notes, and snippets.

@srikat
Created March 16, 2016 06:57
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 srikat/525cb083f079f252b5d3 to your computer and use it in GitHub Desktop.
Save srikat/525cb083f079f252b5d3 to your computer and use it in GitHub Desktop.
container_width = 680
gap = 20
no_of_columns = 2
(container_width - ((no_of_columns - 1) × gap))/no_of_columns
"width of each column" = L5
(L5/container_width) × 100
(gap/container_width) × 100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment