+ 1
How to do a responsive page?
Hii. I'm trying to do a CSS Art for a Front-End challenge that was organized by DEV Community ( if you're interested, here is the link for the event: https://dev.to/challenges/frontend-2025-10-15 ). My idea is to do shelves with different potions. For now, I'm doing and draft about the potions, and I'm struggling with doing ''responsive''. Sorry if my code is messy. Btw, if you have any suggestions about my code or have errors that I need to improve would be helpful. https://www.sololearn.com/compiler-playground/WV329mBwFty5/?ref=app
3 odpowiedzi
+ 3
I didn't see flexbox. maybe you should read about that
+ 3
flexbox or grid.
i removed some a mistakenly applied background color on the bottle css, changed position:absolute to position:relative for the bottle and container divs, and used display flex for the container class. I also resized the bottle div width to more closely fit the actual bottles for less wasted space between bottles.
also did some experiment on node cloning and children shuffling in js to fill up the page.
https://sololearn.com/compiler-playground/Wr8dbOdN2gR8/?ref=app
+ 2
use @media it can give directiv on how the element should be at certain width/heigth



