In a grid of variable width, with a variable number of columns having a minimum and maximum allowed width, how can I calculate the number of columns for any given grid width so they fall within the minimum and maximum allowed column width?
Phrased differently, if I have a magical shrinking chess board, and each tile on the board must be between 2cm-3cm wide, is it possible to calculate how many tiles are allowed in each row so that each tile falls between the minimum and maximum allowed widths as the board shrinks?
Sorry if this is a ridiculous question, I am a UI developer with no maths background. :)