Hacker News new | ask | show | jobs
by mourique 4842 days ago
Looking at the grid i noticed the 1-column divs change size. e.g. 41px - 42px - 41px - 42px - etc. When resizing in smaller displays it behaves different: 25 - 25 - 24 - 25 - 25 - 25- 24 - etc. Was this always the case in bootstrap? I don't really understand the reason for this. It seems odd.
1 comments

I suspect that will be because the primary grid is now based on percentage values rather than fixed pixel values. When you're splitting a grid into columns using percentage widths, often the browser has to make a choice between rounding up or down to the closest pixel value for display.

The fluid grid has long been a part of Bootstrap, but until now has generally been secondary to the fixed 12-column grid, which used strict pixel values.