Removing margin on inline-block element after wrapping lines

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

    You could do something similar to:

    @media screen and (max-width: 453px){
        #elem2 { margin-left:0 !important; }
    }
    

    http://jsfiddle.net/YRshx/3/

提交回复
热议问题