CSS Re-Centering elements on wrap

后端 未结 4 501
太阳男子
太阳男子 2021-01-18 01:32

I thought this would be simple but it\'s proving to be a bit of a headache. I\'m trying to get a grid of images to re-center when the user resizes the browser and causes one

4条回答
  •  我在风中等你
    2021-01-18 01:54

    I found a very similar question with two functional answers. One uses JS and the other uses placeholder elements. Neither are very pretty, but both appear to work around the inline-block whitespace wrap problem here.

    Shrink-wrap and center a container for inline-block elements

提交回复
热议问题