5 points

Is this a new CSS attribute?

permalink
report
reply
3 points

CSS grids are a godsend.

permalink
report
reply
1 point
*
Deleted by creator
permalink
report
reply
2 points
*

I only do webdev occasionally and yeah, I’ve noticed this tendency that I want to put everything in a CSS grid. At this point, I’m worried I end up with a layout that’s about as responsive as the early-2000s table layouts. 🙃

permalink
report
reply
4 points

grid and responsiveness are not antithetical. I mean the concept of grid had been around for like a decade, see bootstrap.

permalink
report
parent
reply
1 point

Yeah, I’ve done responsive grids before. Problem is, I’m currently working on a single-page web music player and it’s so easy to just nail all the UI elements down. Like I might want to have the play button always appear to the left of the playback bar. But that obviously can’t reflow naturally on smaller screens. Although reflowing that example won’t look good either.

I guess, I’m still figuring out, if I ever actually want things to reflow. I might just need to define static rules, so that on a small screen, the play button should appear in a different grid cell, next to the previous/next buttons, for example…

permalink
report
parent
reply
3 points

Grid is made for responsive design.

If you’re not familiar with grid, stick with flex, which kinda just works but doesn’t have the strong control/structure as grid.

permalink
report
parent
reply
2 points
*

It’s fine, my entire website is built on rock and roll grids.

permalink
report
parent
reply
3 points

Put it in another div, make that one display:flex;justify-content:center;

permalink
report
reply

Programmer Humor

!programmer_humor@programming.dev

Create post

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics

Community stats

  • 5.8K

    Monthly active users

  • 988

    Posts

  • 38K

    Comments