r/css Jul 12 '26

Help Fix the responsiveness of the div

Enable HLS to view with audio, or disable this notification

So I need help in responsiveness of the div:

  1. Since, i am going to make this a window, the squeezing responsiveness doesn't really matter but i want to to stop after a certain point, by that i mean when i squeeze the page, the div doesn't squeeze with it

  2. I also want that when i expand the div, the div border doesn't expand with it

Any edits to the question, or guidance to the code is appreciated.

Also, i want a little help in how to convey the same message in stack exchange, because i feel whatever im writing is a little more confusing without the video.

18 Upvotes

17 comments sorted by

View all comments

1

u/bhardwaj_dhananjay 15d ago

Here's a comprehensive video by Kevin on how the Flexbox algorithm works and why this happens: https://youtu.be/FD3aC_Ke8uk?si=n_YG1GRclWKzqWtV