简体   繁体   中英

Keep the image dimensions when resizing the browser

I have 6 pictures on my web page listed in a row. Now when I resize the browser, everything gets smaller (Ratios don't change), but I want to keep my pictures as they are and just move them under each other when they run put of space.

So lets say after resizing, instead of having 6 pictures in a row, I want to have 3 pictures in 2 rows. All the way to make a column list for smaller devices, without changing the pictures dimensions.

Thanks in advance

You should check out the bootstrap grid system, it does exactly that and much more! https://getbootstrap.com/docs/4.2/layout/grid/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM