Mosaic of images HTML/CSS

后端 未结 10 1303
情书的邮戳
情书的邮戳 2020-11-29 03:53

I want to make an image layout with portrait images inside a div with a fixed aspect ratio of 3:2. The size of images is 327

10条回答
  •  情深已故
    2020-11-29 04:00

    wrap your image with a div. set width and height for the div according to ratio. Give only height for image. If you want the image to take only space they need use display:inline also

提交回复
热议问题