3 ms·
> a "responsive" layout is one that adapts to the viewport size Precisely. More often than not, accomplishing this requires more than just squishing and stretc
by _bxg1 8y ago
> a "responsive" layout is one that adapts to the viewport size
Precisely. More often than not, accomplishing this requires more than just squishing and stretching. Panes have to wrap around at certain points and the layout has to shift. You can do this with a bunch of special cases, but the better way is to let the rules of flow work for you. For example, you can have a flex child "grow to fill available space but have minimum size", so that if less than that minimum size is available it wraps around to the next line. You want to talk about your layout in terms of a series of sections, not a fixed grid. This was impossible with <table>; CSS Grid provides tools for special-casing these things, but it's still way more obtuse than letting them occur naturally.
- deleted 8y ago[deleted]