had implemented that in my webpage here ( https://hafijul_ali.gitlab.io/product-display )
Its responsive
one of the difference that I have in my design is, images are not 100% of parent div, but in that way we either need to set max-width, max-height property so that it doesnt expand much.
Also, setting height to auto and width to 100% ensures that the image takes complete width space in div, and aspect ratio is maintained
Okay.. understood
Обсуждают сегодня