Search
An Auto-Filling CSS Grid With Max Columns of a Minimum Size
16.2.2022
Within Drupal 10 core, we’re implementing a new auto-filling CSS Grid technique that I think is cool enough to share with the world.
The requirements are:
The user specifies a maximum number of columns. This is the auto-filling grid’s “natural”
…
An Auto-Filling CSS Grid With Max Columns...
Intrinsically Responsive CSS Grid with minmax() and min()
31.7.2019
The most famous line of code to have come out of CSS grid so far is:
grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
Without any media queries, that will set up a grid container that has a flexible number of columns. The columns will stretch a little, until there is enough room...
A responsive grid layout with no media queries
9.5.2019
Andy Bell made a really cool demo that shows us how to create a responsive grid layout without any media queries at all. It happens to look like this when you change the size of the browser window:
I think this is a wonderful layout technique that’s just 6 lines (!) of CSS.
.auto-grid...
WDRL — Edition 220: Focus, CSS Like In The 90s, And Auto-Fill/-Fit in Grid
9.3.2018
Hey,
a lot of things change but maybe we focus on the wrong things? The mixture of news and questions whether how we write CSS is the right way to do let me think about this for quite some time. While we achieve a lot with technology, it gets clearer that it affects our happiness negatively...