Hello everyone, I want to know if there is a way without JavaScript to make the children elements responsive corresponding to the parent element and not the window.
For further actions, you may consider blocking this person and/or reporting abuse
Hello everyone, I want to know if there is a way without JavaScript to make the children elements responsive corresponding to the parent element and not the window.
For further actions, you may consider blocking this person and/or reporting abuse
Joan Peramรกs Ceras -
Eleftheria Batsou -
Gladiators Battle -
Patrick -
Top comments (4)
There have been proposals for such but nothing has ever made it very far. Search โcss container queriesโ for something that seems like it has the most steam recently. Still not necessarily promising
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......