loading...

re: Things we still can't do in CSS VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Thanks, I definitely appreciate the effort you put into this, but I don't think those really work. As far as I can tell, the codepen works by hardc...
 

You can bypass the hardcoding by using a CSS variable for your number of columns and using calc to calculate the grid layout

I tried but apparently CSS variables don't work in media queries, so I can't use calc to determine the breakpoints based on the column width.

code of conduct - report abuse