Removing margin on inline-block element after wrapping lines

后端 未结 7 1053
无人及你
无人及你 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:25

    Just keep the inline container in a inline div and float them...

    Code:-

    Demo:- http://jsfiddle.net/YRshx/2/

    Thanks...

提交回复
热议问题