How do you float elements without a vertical gap?

后端 未结 9 2004
野的像风
野的像风 2020-11-30 16:03

I am trying to float elements left. Here is my css:

width: 320px;
float: left;
border: 1px solid #ccc;
margin-top: 10px;
margin-right: 10px;
border-radius: 5         


        
9条回答
  •  时光说笑
    2020-11-30 16:17

    Internet Explorer doesn't handle negative margins properly. You'll want to position that div either relative or absolute and use the top:-50px (or however many px it takes).

提交回复
热议问题