Open proimage opened 6 years ago
Try making the outside columns auto instead of minmax.
And consider using breakpoints with a different grid definitions for narrower viewports if your outside columns are only going to be 50px or 10px wide at smaller viewports.
I'll try that, thanks.
At smaller viewports the outer columns should shrink down until they disappear entirely, outermost ([full]
) first.
I'm using grids for the first time (yay!). The site I'm using it on has elements stretching out to one of three main widths - full-width (100% browser width), content-width (1640px), or text-width (880px). Here's my SCSS:
For a quick example, horizontal lines in the header and footer might use
.full-width
, a photo gallery could use.content-width
, and article copy would use.text-width
. Or, visually:The question: How do I make it so that the center column—the
text
grid area—is the last to shrink in width as the browser window shrinks? At the moment, the centertext
grid area shrinks proportionately with the other columns.I realize I could just use breakpoints to control whether the
text
grid area can shrink or not, but I feel like there's probably a more native "grid" method that I'm just missing...Thanks!!
P.S. And yes, I did have fun making that possibly-superfluous ASCII-art diagram. ;)