For now, media queries are good enough to make things work and responsive 100% for all devices but because I am lazy, I am trying to make my code fit any container in any project without any extra work.
Till now, it looks impossible without JavaScript.
I don't think so. Not without it being extremely hacky. If you find one, I'd be interested in seeing it!
For now, media queries are good enough to make things work and responsive 100% for all devices but because I am lazy, I am trying to make my code fit any container in any project without any extra work.
Till now, it looks impossible without JavaScript.
Maybe you can get that behavior with auto fit of css Grid......