Removing margin on inline-block element after wrapping lines

后端 未结 7 1101
无人及你
无人及你 2021-01-01 22:33

I\'m hoping there\'s a way to do this without JavaScript. I have two elements displayed with inline-block. They are both 200 pixels in width and height, so they both appear

7条回答
  •  甜味超标
    2021-01-01 23:20

    Working jsFiddle Demo

    Try to add margin to both left and right, and to your both elements:

    However based on your real layout, this trick maybe won't work, or need more things.

提交回复
热议问题