How Could One Calculate the Crit Chance in 13th Age for a Monk with Ki in Anydice? The first parameter specified how many columns or rows you want, and the second specifies their width, so this will just give us the exact same layout as we started out with: Then theres auto-fit. I chose the breakpoints based on Bootstrap's sizes for xs, sm, and so on. I do not have to add one for horizontal as div is a block-level element that will take the full width horizontally by default. If the max-width property is set to 100%, the image will scale down if it has to, but never scale up to be larger than its original size: The HTML